Documentation ¶ Index ¶ func NewAPIError(message string) error func NewAPIErrorf(format string, a ...any) error func NewError(httpCode int, message string) error type APIError func (e *APIError) Error() string type Error func (e *Error) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewAPIError ¶ func NewAPIError(message string) error func NewAPIErrorf ¶ func NewAPIErrorf(format string, a ...any) error func NewError ¶ func NewError(httpCode int, message string) error Types ¶ type APIError ¶ type APIError struct { Message string `json:"message"` } func (*APIError) Error ¶ func (e *APIError) Error() string type Error ¶ type Error struct { HTTPCode int Message string } func (*Error) Error ¶ func (e *Error) Error() string Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.