Documentation
¶
Index ¶
- Variables
- type Error
- type ErrorObject
- func (e ErrorObject) AddParam(name string, value interface{}) Error
- func (e ErrorObject) Error() string
- func (e ErrorObject) Kind() Kind
- func (e ErrorObject) Message() string
- func (e ErrorObject) Params() map[string]interface{}
- func (e ErrorObject) SetKind(kind Kind) Error
- func (e ErrorObject) SetMessage(message string) Error
- func (e ErrorObject) SetParams(params map[string]interface{}) Error
- func (e ErrorObject) SetSubKind(kind Kind) Error
- func (e ErrorObject) SubKind() Kind
- type Errors
- type Kind
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValidationError = NewError(Validation) ServiceError = NewError(Service) CircuitBreakerError = NewError(Service) DatabaseError = NewError(Database) )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type ErrorObject ¶
type ErrorObject struct {
// contains filtered or unexported fields
}
func (ErrorObject) AddParam ¶
func (e ErrorObject) AddParam(name string, value interface{}) Error
AddParam -
func (ErrorObject) SetParams ¶
func (e ErrorObject) SetParams(params map[string]interface{}) Error
SetParams -
Click to show internal directories.
Click to hide internal directories.