Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrStacker ¶
type ErrStacker interface {
// Init the context so it can be used for stack.
Init(ctx context.Context) context.Context
// Wrap the error and put it in the error stack.
Wrap(ctx context.Context, err error, errs ...error) error
// Get the error stack.
Get(ctx context.Context) interface{}
}
ErrStacker is error stack interface.
See usage example in example folder.
Click to show internal directories.
Click to hide internal directories.