Documentation ¶
Overview ¶
Package errors is a drop-in replacement for Golang lib 'errors'.
Index ¶
- func Cause(err error) error
- func GetSeverity(err error) log.Severity
- type Error
- func (v *Error) AtDebug() *Error
- func (v *Error) AtError() *Error
- func (v *Error) AtInfo() *Error
- func (v *Error) AtWarning() *Error
- func (v *Error) Base(err error) *Error
- func (v *Error) Error() string
- func (v *Error) Inner() error
- func (v *Error) Path(path ...string) *Error
- func (v *Error) Severity() log.Severity
- func (v *Error) String() string
- func (v *Error) WriteToLog(opts ...ExportOption)
- type ExportOption
- type ExportOptionHolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSeverity ¶
GetSeverity returns the actual severity of the error, including inner errors.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an error object with underlying error.
func New ¶
func New(msg ...interface{}) *Error
New returns a new error object with message formed from given arguments.
func (*Error) WriteToLog ¶ added in v3.8.1
func (v *Error) WriteToLog(opts ...ExportOption)
WriteToLog writes current error into log.
type ExportOption ¶ added in v3.27.1
type ExportOption func(*ExportOptionHolder)
type ExportOptionHolder ¶ added in v3.27.1
type ExportOptionHolder struct {
SessionID uint32
}
Click to show internal directories.
Click to hide internal directories.