package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Oct 22, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Error interface {
error
ApiError() string
ApiErrors() interface{}
}
Error implements generic error interface
type Failure struct {
RuntimeErr error
ApiErr string
ApiErrs interface{}
}
Failure struct implode runtime & api errors
ApiError returns formatted string representation of the API error
func (f *Failure) ApiErrors() interface{}
ApiErrors returns array of formatted strings that represents API errors
Error returns the string representation of the error and satisfies the error interface.
type FailureResponse struct {
ErrorMsg string `json:"errorMsg,omitempty"`
Errors interface{} `json:"errors,omitempty"`
}
FailureResponse convert json error response into object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.