Documentation ¶
Overview ¶
Package errors implements functions to manipulate errors.
Index ¶
- func MakeCatch(thread *starlark.Thread, _ string, args starlark.Tuple, ...) (starlark.Value, error)
- func MakeError(thread *starlark.Thread, _ string, args starlark.Tuple, ...) (starlark.Value, error)
- func NewModule() *starlarkstruct.Module
- type Error
- func (e Error) Attr(name string) (starlark.Value, error)
- func (e Error) AttrNames() []string
- func (e Error) Err() error
- func (e Error) Error() string
- func (e Error) Freeze()
- func (e Error) Hash() (uint32, error)
- func (e Error) String() string
- func (e Error) Truth() starlark.Bool
- func (e Error) Type() string
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCatch ¶
func MakeCatch(thread *starlark.Thread, _ string, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
MakeCatch evaluates f() and returns its evaluation error message if it failed or the value if it succeeded.
func NewModule ¶
func NewModule() *starlarkstruct.Module
Types ¶
Click to show internal directories.
Click to hide internal directories.