Documentation ¶
Overview ¶
Package errors is a drop-in replacement for Golang lib 'errors'.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an error object with underlying error.
type ErrorBuilder ¶
type ErrorBuilder struct {
// contains filtered or unexported fields
}
func Base ¶
func Base(err error) ErrorBuilder
Base returns an ErrorBuilder based on the given error.
func (ErrorBuilder) Format ¶
func (v ErrorBuilder) Format(format string, values ...interface{}) error
Format returns an errors object with given message format and base error.
func (ErrorBuilder) Message ¶
func (v ErrorBuilder) Message(msg ...interface{}) error
Message returns an error object with given message and base error.
Click to show internal directories.
Click to hide internal directories.