Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIUserFault byte = iota APIUserFaultNeedsLog APIServerFault APITimedOut APINoCapacity APIUnexpectedValue APIDatabaseFailed )
View Source
const (
MessageKeyInvalidatedDueToMalice = "" /* 136-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
// Type is a uint8 that specifies the error type. If at any time, an error's type is
// set to zero - it means we may not handle the error properly and it should be looked into.
Type byte
// Message is the message of the error.
Message string
// Underlying is the error that may have caused this error to be created. This is mainly used
// when a function recovers, and we don't know what type the recover is.
Underlying any
}
APIError is the underlying error struct for when the API encounters an error.
func (*APIError) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.