package
Version:
v1.17.12
Opens a new window with list of versions in this module.
Published: Nov 7, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DEPRECATED: This package is deprecated and will be removed in a future release.
Any reports whether an error in error's chain
matches to any error provided in list.
ExitErr prints error to os.Stderr and call os.Exit with given code.
ExitMsg prints message to os.Stderr and call os.Exit with given code.
Is wraps function errors.Is from stdlib to avoid import it
in other places of the magma smart contract (magmasc) package.
func New(code, text string) *errWrapper
New returns constructed error wrapper interface.
Wrap wraps given error into a new error with format.
type Error struct {
Code string `json:"code,omitempty"`
Msg string `json:"msg"`
}
Error type for a new application error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.