Documentation
¶
Overview ¶
Package clierr classifies CLI errors into stable codes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRateLimited = errors.New("rate limited")
Functions ¶
This section is empty.
Types ¶
type CLIError ¶
type CLIError struct {
Code Code `json:"code"`
Message string `json:"message"`
// contains filtered or unexported fields
}
func (*CLIError) MarshalJSON ¶
func (*CLIError) MarshalLogObject ¶
func (e *CLIError) MarshalLogObject(enc zapcore.ObjectEncoder) error
Click to show internal directories.
Click to hide internal directories.