errors

package
v0.0.0-...-0d409a9 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStackTrace

func AddStackTrace(err error) error

Add StackTrace to specified error

func NewError

func NewError(msg string) error

Make new error with specified message

func NewErrorWithCode

func NewErrorWithCode(code int, msg string) error

Make new error with specified code and message

func NewErrorf

func NewErrorf(format string, args ...interface{}) error

Make new error with specified message format and specified arguments for this format

Types

type AssertionError

type AssertionError struct {
}

func (AssertionError) Error

func (AssertionError) Error() string

type NilError

type NilError struct {
}
var NilErrorErr NilError = NilError{}

func (NilError) Error

func (NilError) Error() string

type NotImplementedError

type NotImplementedError struct {
}

func (NotImplementedError) Error

func (NotImplementedError) Error() string

type NullableError

type NullableError struct {
}

func (NullableError) Error

func (NullableError) Error() string

type UnreachableError

type UnreachableError struct {
}

func (UnreachableError) Error

func (UnreachableError) Error() string

type UnwrapError

type UnwrapError struct {
}

func (UnwrapError) Error

func (UnwrapError) Error() string

Jump to

Keyboard shortcuts

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