Documentation
¶
Index ¶
- Variables
- func CaptureStackTrace() string
- func CollectWrappedErrors(err error) []error
- func IsAll(err error, targets ...error) bool
- func IsAny(err error, targets ...error) bool
- func IsClosedError(err error) bool
- type CauseErrorI
- type CodeErrorI
- type ContextErrorI
- type Error
- type ExtendedError
- func (err *ExtendedError) As(target any) bool
- func (err *ExtendedError) Error() string
- func (err *ExtendedError) GetCode() string
- func (err *ExtendedError) GetContext() *context.Context
- func (err *ExtendedError) GetId() string
- func (err *ExtendedError) GetInput() any
- func (err *ExtendedError) GetStackTrace() string
- func (err *ExtendedError) Is(target error) bool
- func (err *ExtendedError) Unwrap() []error
- type IdErrorI
- type InputErrorI
- type StackTraceErrorI
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSyntaxError = errors.New("syntax error") ErrSemanticError = errors.New("semantic error") ErrParseError = errors.New("parse error") ErrVerificationError = errors.New("verification error") ErrValidationError = errors.New("validation error") ErrConversionNotOk = errors.New("conversion not ok") ErrBadSplit = errors.New("bad split") ErrNotInContext = errors.New("not in context") ErrZeroValue = errors.New("zero value") ErrNotInMap = errors.New("not in map") ErrMapZeroValue = errors.New("map zero value") ErrUnexpectedType = errors.New("unexpected type") )
Functions ¶
func CaptureStackTrace ¶
func CaptureStackTrace() string
func CollectWrappedErrors ¶
func IsClosedError ¶
Types ¶
type CauseErrorI ¶
type CodeErrorI ¶
type ContextErrorI ¶
type Error ¶
func (*Error) GetStackTrace ¶
type ExtendedError ¶
type ExtendedError struct {
Input any
Code string
Id string
StackTrace string
Context *context.Context
// contains filtered or unexported fields
}
func New ¶
func New(e any, input ...any) *ExtendedError
func NewWithTrace ¶
func NewWithTrace(e any, input ...any) *ExtendedError
func NewWithTraceCtx ¶
func NewWithTraceCtx(ctx context.Context, e any, input ...any) *ExtendedError
func (*ExtendedError) As ¶
func (err *ExtendedError) As(target any) bool
func (*ExtendedError) Error ¶
func (err *ExtendedError) Error() string
func (*ExtendedError) GetCode ¶
func (err *ExtendedError) GetCode() string
func (*ExtendedError) GetContext ¶
func (err *ExtendedError) GetContext() *context.Context
func (*ExtendedError) GetId ¶
func (err *ExtendedError) GetId() string
func (*ExtendedError) GetInput ¶
func (err *ExtendedError) GetInput() any
func (*ExtendedError) GetStackTrace ¶
func (err *ExtendedError) GetStackTrace() string
func (*ExtendedError) Is ¶
func (err *ExtendedError) Is(target error) bool
func (*ExtendedError) Unwrap ¶
func (err *ExtendedError) Unwrap() []error
type InputErrorI ¶
type StackTraceErrorI ¶
Click to show internal directories.
Click to hide internal directories.