package
Version:
v0.0.0-...-d8e89f0
Opens a new window with list of versions in this module.
Published: Sep 3, 2015
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
IsEqual tests whether an error is equal to another error / failure
IsFail tests whether the passed in error is a failure
New creates a new failure
func NewFromErr(err error, data interface{}) error
NewFromErr returns a new failure based on the passed in error
type Fail struct {
Message string `json:"message,omitempty"`
Data interface{} `json:"data,omitempty"`
}
Fail is an error whos contents can be exposed to the client and is usually the result
of incorrect client input
Source Files
¶
Click to show internal directories.
Click to hide internal directories.