Documentation ¶
Index ¶
- type Op
- type RichError
- func (e RichError) Error() string
- func (e RichError) Get() map[string]interface{}
- func (e RichError) Kind() kind.Kind
- func (e RichError) Message() string
- func (e RichError) Meta() map[string]interface{}
- func (e RichError) Op() Op
- func (e RichError) StackTrace() map[string]interface{}
- func (e RichError) WrappedError() error
- type RichErrorBuilder
- func (r RichErrorBuilder) Build() RichError
- func (r RichErrorBuilder) Error() string
- func (r RichErrorBuilder) Kind() kind.Kind
- func (r RichErrorBuilder) Message() string
- func (r RichErrorBuilder) Meta() map[string]interface{}
- func (r RichErrorBuilder) Op() Op
- func (r RichErrorBuilder) WithErr(err error) RichErrorBuilder
- func (r RichErrorBuilder) WithKind(kind kind.Kind) RichErrorBuilder
- func (r RichErrorBuilder) WithMessage(message string) RichErrorBuilder
- func (r RichErrorBuilder) WithMeta(meta map[string]interface{}) RichErrorBuilder
- func (r RichErrorBuilder) WithOp(op Op) RichErrorBuilder
- func (r RichErrorBuilder) WithStackTrace(message ...string) RichErrorBuilder
- func (r RichErrorBuilder) WrappedError() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RichError ¶
type RichError struct {
// contains filtered or unexported fields
}
func (RichError) StackTrace ¶
func (RichError) WrappedError ¶
type RichErrorBuilder ¶
type RichErrorBuilder struct {
RichError
}
func New ¶
func New(op Op) RichErrorBuilder
func (RichErrorBuilder) Build ¶
func (r RichErrorBuilder) Build() RichError
func (RichErrorBuilder) Error ¶
func (r RichErrorBuilder) Error() string
func (RichErrorBuilder) Kind ¶
func (r RichErrorBuilder) Kind() kind.Kind
func (RichErrorBuilder) Message ¶
func (r RichErrorBuilder) Message() string
func (RichErrorBuilder) Meta ¶
func (r RichErrorBuilder) Meta() map[string]interface{}
func (RichErrorBuilder) Op ¶
func (r RichErrorBuilder) Op() Op
func (RichErrorBuilder) WithErr ¶
func (r RichErrorBuilder) WithErr(err error) RichErrorBuilder
func (RichErrorBuilder) WithKind ¶
func (r RichErrorBuilder) WithKind(kind kind.Kind) RichErrorBuilder
func (RichErrorBuilder) WithMessage ¶
func (r RichErrorBuilder) WithMessage(message string) RichErrorBuilder
func (RichErrorBuilder) WithMeta ¶
func (r RichErrorBuilder) WithMeta(meta map[string]interface{}) RichErrorBuilder
func (RichErrorBuilder) WithOp ¶
func (r RichErrorBuilder) WithOp(op Op) RichErrorBuilder
func (RichErrorBuilder) WithStackTrace ¶
func (r RichErrorBuilder) WithStackTrace(message ...string) RichErrorBuilder
func (RichErrorBuilder) WrappedError ¶
func (r RichErrorBuilder) WrappedError() error
Click to show internal directories.
Click to hide internal directories.