Documentation
¶
Index ¶
- type CodeError
- func ForbiddenError(message string) *CodeError
- func ForbiddenErrorWithReason(message string, role string, resource ...string) *CodeError
- func InvalidArgumentError(message string) *CodeError
- func InvalidArgumentErrorWithDetails(message string, details ...string) *CodeError
- func NewCodeError(failureCode int, code string, message string) *CodeError
- func NewCodeErrorWithCause(failureCode int, code string, message string, cause error) *CodeError
- func NewCodeErrorWithDepth(failureCode int, code string, message string, depth int) *CodeError
- func NotFoundError(message string) *CodeError
- func NotImplementedError(message string) *CodeError
- func ServiceError(message string) *CodeError
- func UnauthorizedError(message string) *CodeError
- func UnavailableError(message string) *CodeError
- type ErrorStack
- type MultiMap
- func (h MultiMap) Add(key string, value string)
- func (h MultiMap) Empty() bool
- func (h MultiMap) Get(key string) (string, bool)
- func (h MultiMap) Keys() []string
- func (h MultiMap) Put(key string, value []string)
- func (h MultiMap) Remove(key string)
- func (h MultiMap) Values(key string) ([]string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeError ¶
type CodeError struct {
Id string `json:"id,omitempty"`
FailureCode int `json:"failureCode,omitempty"`
Code string `json:"code,omitempty"`
Message string `json:"message,omitempty"`
Meta MultiMap `json:"meta,omitempty"`
Stacktrace []ErrorStack `json:"stacktrace,omitempty"`
}
func ForbiddenError ¶
func InvalidArgumentError ¶
func NewCodeErrorWithCause ¶
func NewCodeErrorWithDepth ¶
func NotFoundError ¶
func NotImplementedError ¶
func ServiceError ¶
func UnauthorizedError ¶
func UnavailableError ¶
func (*CodeError) SetFailureCode ¶
type ErrorStack ¶
Click to show internal directories.
Click to hide internal directories.