Documentation ¶
Index ¶
- type ErrorWithStatus
- func NeedExit(err error) (ErrorWithStatus, bool)
- func NewError() ErrorWithStatus
- func NewErrorWithFrames(err error) ErrorWithStatus
- func NewErrorWithStatus(err error, status int, skipMessage bool) ErrorWithStatus
- func NewErrorf(str string, v ...interface{}) ErrorWithStatus
- func NewErrorfStatus(status int, str string, v ...interface{}) ErrorWithStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorWithStatus ¶
type ErrorWithStatus interface { error ExitStatus() int IsSkipPrintMessage() bool SetError(err error) ErrorWithStatus SkipMessage() ErrorWithStatus SetPrintMessage() ErrorWithStatus SetExitStatus(status int) ErrorWithStatus }
func NeedExit ¶
func NeedExit(err error) (ErrorWithStatus, bool)
func NewError ¶
func NewError() ErrorWithStatus
func NewErrorWithFrames ¶
func NewErrorWithFrames(err error) ErrorWithStatus
func NewErrorWithStatus ¶
func NewErrorWithStatus(err error, status int, skipMessage bool) ErrorWithStatus
func NewErrorf ¶
func NewErrorf(str string, v ...interface{}) ErrorWithStatus
func NewErrorfStatus ¶
func NewErrorfStatus(status int, str string, v ...interface{}) ErrorWithStatus
Click to show internal directories.
Click to hide internal directories.