Documentation ¶
Index ¶
- type AdvancedError
- func (err *AdvancedError) Error() SimpleError
- func (err *AdvancedError) ErrorWithOperations() AdvancedError
- func (err *AdvancedError) ToJSON() ([]byte, error)
- func (err *AdvancedError) WithMeta(key, value string) *AdvancedError
- func (err *AdvancedError) WithOperations(operation string) *AdvancedError
- type CustomErrorList
- type Error
- type ErrorList
- type SimpleError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedError ¶
type AdvancedError struct { *SimpleError Operations []string `json:"operations"` }
func (*AdvancedError) Error ¶
func (err *AdvancedError) Error() SimpleError
func (*AdvancedError) ErrorWithOperations ¶
func (err *AdvancedError) ErrorWithOperations() AdvancedError
func (*AdvancedError) ToJSON ¶
func (err *AdvancedError) ToJSON() ([]byte, error)
func (*AdvancedError) WithMeta ¶
func (err *AdvancedError) WithMeta(key, value string) *AdvancedError
func (*AdvancedError) WithOperations ¶
func (err *AdvancedError) WithOperations(operation string) *AdvancedError
type CustomErrorList ¶
type CustomErrorList struct {
Errors []Error `json:"errors"`
}
func (*CustomErrorList) Append ¶
func (errList *CustomErrorList) Append(ers ...Error) *CustomErrorList
func (*CustomErrorList) Get ¶
func (errList *CustomErrorList) Get() *CustomErrorList
func (*CustomErrorList) GetErrors ¶
func (errList *CustomErrorList) GetErrors() []Error
type Error ¶
type Error interface { WithMeta(key, value string) *AdvancedError WithOperations(operation string) *AdvancedError Error() SimpleError ErrorWithOperations() AdvancedError }
type ErrorList ¶
type ErrorList interface { Append(ers ...Error) *CustomErrorList Get() *CustomErrorList GetErrors() []Error }
func NewErrorList ¶
func NewErrorList() ErrorList
Click to show internal directories.
Click to hide internal directories.