errs

package
v0.0.0-...-444f7c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2023 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

package errs provides error types that occur in the runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func NewAttributeError

func NewAttributeError(message string, format ...any) Error

NewAttributeError returns a type error with a message.

func NewParseError

func NewParseError(message string, format ...any) Error

NewParseError returns a parsing error with a message.

func NewStackError

func NewStackError(message string, format ...any) Error

NewStackError returns a stack error with a message.

func NewTypeError

func NewTypeError(message string, format ...any) Error

NewTypeError returns a type error with a message.

func NewVariableError

func NewVariableError(message string, format ...any) Error

NewVariableError returns a variable error with a message.

func (Error) Error

func (e Error) Error() string

type ErrorKind

type ErrorKind string
const (
	ParseKind     ErrorKind = "ParseError"
	StackKind     ErrorKind = "StackError"
	VariableKind  ErrorKind = "VariableError"
	TypeKind      ErrorKind = "TypeError"
	AttributeKind ErrorKind = "AttributeError"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL