Documentation
¶
Index ¶
- type CodeError
- func ForbiddenError(message string) CodeError
- func ForbiddenErrorWithReason(message string, role string, resource ...string) CodeError
- func FromJson(v []byte) (codeErr CodeError, ok bool)
- func InvalidArgumentError(message string) CodeError
- func InvalidArgumentErrorWithDetails(message string, details ...string) CodeError
- func Map(err error) (codeErr CodeError)
- func NewCodeError(failureCode int, code string, message string) CodeError
- func NotFoundError(message string) CodeError
- func NotImplementedError(message string) CodeError
- func ServiceError(message string) CodeError
- func Transfer(err error) (codeErr CodeError, ok bool)
- func UnauthorizedError(message string) CodeError
- func UnavailableError(message string) CodeError
- 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 interface {
Id() string
Code() string
FailureCode() int
Message() string
Meta() MultiMap
Stacktrace() (fn string, file string, line int)
Error() string
String() string
ToJson() []byte
}
func ForbiddenError ¶
func InvalidArgumentError ¶
func NotFoundError ¶
func NotImplementedError ¶
func ServiceError ¶
func UnauthorizedError ¶
func UnavailableError ¶
Click to show internal directories.
Click to hide internal directories.