Documentation ¶
Index ¶
- type Basic
- type MyInternal
- func (e *MyInternal) Code() errors.ErrorCode
- func (e *MyInternal) Error() string
- func (e *MyInternal) InstanceID() uuid.UUID
- func (e MyInternal) MarshalJSON() ([]byte, error)
- func (o MyInternal) MarshalYAML() (interface{}, error)
- func (e *MyInternal) Name() string
- func (e *MyInternal) Parameters() map[string]interface{}
- func (e *MyInternal) SafeParams() map[string]interface{}
- func (e *MyInternal) UnmarshalJSON(data []byte) error
- func (o *MyInternal) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (e *MyInternal) UnsafeParams() map[string]interface{}
- type MyNotFound
- func (e *MyNotFound) Code() errors.ErrorCode
- func (e *MyNotFound) Error() string
- func (e *MyNotFound) InstanceID() uuid.UUID
- func (e MyNotFound) MarshalJSON() ([]byte, error)
- func (o MyNotFound) MarshalYAML() (interface{}, error)
- func (e *MyNotFound) Name() string
- func (e *MyNotFound) Parameters() map[string]interface{}
- func (e *MyNotFound) SafeParams() map[string]interface{}
- func (e *MyNotFound) UnmarshalJSON(data []byte) error
- func (o *MyNotFound) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (e *MyNotFound) UnsafeParams() map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct {
Data string `json:"data"`
}
func (Basic) MarshalYAML ¶
func (*Basic) UnmarshalYAML ¶
type MyInternal ¶
type MyInternal struct {
// contains filtered or unexported fields
}
MyInternal is an error type.
Internal server error.
func NewMyInternal ¶
func NewMyInternal(safeArgAArg Basic, safeArgBArg []int, typeArg string, unsafeArgAArg string, unsafeArgBArg *string, myInternalArg string) *MyInternal
NewMyInternal returns new instance of MyInternal error.
func (*MyInternal) Code ¶
func (e *MyInternal) Code() errors.ErrorCode
Code returns an enum describing error category.
func (*MyInternal) Error ¶
func (e *MyInternal) Error() string
func (*MyInternal) InstanceID ¶
func (e *MyInternal) InstanceID() uuid.UUID
InstanceID returns unique identifier of this particular error instance.
func (MyInternal) MarshalJSON ¶
func (e MyInternal) MarshalJSON() ([]byte, error)
func (MyInternal) MarshalYAML ¶
func (o MyInternal) MarshalYAML() (interface{}, error)
func (*MyInternal) Name ¶
func (e *MyInternal) Name() string
Name returns an error name identifying error type.
func (*MyInternal) Parameters ¶
func (e *MyInternal) Parameters() map[string]interface{}
Parameters returns a set of named parameters detailing this particular error instance.
func (*MyInternal) SafeParams ¶
func (e *MyInternal) SafeParams() map[string]interface{}
SafeParams returns a set of named safe parameters detailing this particular error instance.
func (*MyInternal) UnmarshalJSON ¶
func (e *MyInternal) UnmarshalJSON(data []byte) error
func (*MyInternal) UnmarshalYAML ¶
func (*MyInternal) UnsafeParams ¶
func (e *MyInternal) UnsafeParams() map[string]interface{}
UnsafeParams returns a set of named unsafe parameters detailing this particular error instance.
type MyNotFound ¶
type MyNotFound struct {
// contains filtered or unexported fields
}
MyNotFound is an error type.
Something was not found.
func NewMyNotFound ¶
func NewMyNotFound(safeArgAArg Basic, safeArgBArg []int, typeArg string, unsafeArgAArg string, unsafeArgBArg *string) *MyNotFound
NewMyNotFound returns new instance of MyNotFound error.
func (*MyNotFound) Code ¶
func (e *MyNotFound) Code() errors.ErrorCode
Code returns an enum describing error category.
func (*MyNotFound) Error ¶
func (e *MyNotFound) Error() string
func (*MyNotFound) InstanceID ¶
func (e *MyNotFound) InstanceID() uuid.UUID
InstanceID returns unique identifier of this particular error instance.
func (MyNotFound) MarshalJSON ¶
func (e MyNotFound) MarshalJSON() ([]byte, error)
func (MyNotFound) MarshalYAML ¶
func (o MyNotFound) MarshalYAML() (interface{}, error)
func (*MyNotFound) Name ¶
func (e *MyNotFound) Name() string
Name returns an error name identifying error type.
func (*MyNotFound) Parameters ¶
func (e *MyNotFound) Parameters() map[string]interface{}
Parameters returns a set of named parameters detailing this particular error instance.
func (*MyNotFound) SafeParams ¶
func (e *MyNotFound) SafeParams() map[string]interface{}
SafeParams returns a set of named safe parameters detailing this particular error instance.
func (*MyNotFound) UnmarshalJSON ¶
func (e *MyNotFound) UnmarshalJSON(data []byte) error
func (*MyNotFound) UnmarshalYAML ¶
func (*MyNotFound) UnsafeParams ¶
func (e *MyNotFound) UnsafeParams() map[string]interface{}
UnsafeParams returns a set of named unsafe parameters detailing this particular error instance.