Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type E ¶
type E struct { Code Code `json:"code"` Meta M `json:"meta"` TraceID trace.TraceID `json:"trace_id"` SpanID trace.SpanID `json:"span_id"` Stack []stacktrace.Frame `json:"stack"` Reasons []error `json:"reasons"` }
func (E) Error ¶
Error implements the error interface
Provides a simple string representation of the error, but cannot include the complete data contained in the error
No compatibility guarantees are made with its output - it may change at any time
func (E) GetStack ¶
func (e E) GetStack() []stacktrace.Frame
type Merrer ¶
Merrer (merr-er) represents a merr-compatible error
It primarily exists to allow `Wrap` to return nil without forcing us to use pointers for `E`, but also allows other structs to offer a merr.E option
type StackError ¶
type StackError interface {
GetStack() []stacktrace.Frame
}
Click to show internal directories.
Click to hide internal directories.