lisperror

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPosition

func GetPosition(ast MalType) *Position

func NewGoError

func NewGoError(fFullName string, err interface{}) error

NewGoError is used to create a LispError on errors returned by go functions

Types

type LispError

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

Errors/Exceptions

func NewLispError

func NewLispError(err MalType, ast MalType) LispError

func (LispError) Error

func (e LispError) Error() string

func (LispError) ErrorValue

func (e LispError) ErrorValue() MalType

func (LispError) Is

func (e LispError) Is(target error) bool

func (LispError) LispPrint

func (e LispError) LispPrint(Pr_str func(MalType, bool) string) string

func (LispError) MarshalHashMap

func (e LispError) MarshalHashMap() (MalType, error)

func (LispError) Position

func (e LispError) Position() *Position

func (LispError) Unwrap

func (e LispError) Unwrap() error

Jump to

Keyboard shortcuts

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