Documentation
¶
Index ¶
- type ErrorBuilder
- func (b *ErrorBuilder) Error(ctx context.Context, msg string, metaKeyValues ...any) error
- func (b *ErrorBuilder) ErrorCode(code string) *ErrorBuilder
- func (b *ErrorBuilder) Errorf(ctx context.Context, format string, args ...any) error
- func (b *ErrorBuilder) Tags(tag ...string) *ErrorBuilder
- func (b *ErrorBuilder) Wrap(ctx context.Context, err error, msg string, metaKeyValues ...any) error
- func (b *ErrorBuilder) Wrapf(ctx context.Context, err error, format string, args ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorBuilder ¶
type ErrorBuilder struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ErrorBuilder
func (*ErrorBuilder) ErrorCode ¶
func (b *ErrorBuilder) ErrorCode(code string) *ErrorBuilder
func (*ErrorBuilder) Tags ¶
func (b *ErrorBuilder) Tags(tag ...string) *ErrorBuilder
Click to show internal directories.
Click to hide internal directories.