api-client-go/errs/types.go

15 lines
342 B
Go
Raw Normal View History

package errs
// Failure struct implode runtime & api errors
type Failure struct {
2019-02-21 11:51:50 +03:00
runtimeErr error
apiErr string
apiErrs map[string]string
}
// FailureResponse convert json error response into object
type FailureResponse struct {
2018-10-18 18:21:07 +03:00
ErrorMsg string `json:"errorMsg,omitempty"`
Errors interface{} `json:"errors,omitempty"`
}