Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Err error
// contains filtered or unexported fields
}
Error represents a error's specification.
func (*Error) Error ¶
Error satisfy the built-in interface type is the conventional error interface. It returns a JSON object from an error object.
func (*Error) IsEmpty ¶
IsEmpty verify if the error object is empty, without meta and the original error. It returns true if is empty.
func (*Error) JSON ¶
func (e *Error) JSON() interface{}
JSON creates a properly formatted JSON It return a JSON interface representation of error.
func (*Error) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface.
func (*Error) Meta ¶
Meta gets the error's meta data into a string. It return the string representation of error.
Click to show internal directories.
Click to hide internal directories.