api-client-go/errs/types.go

15 lines
354 B
Go
Raw Normal View History

package errs
// Failure struct implode runtime & api errors
type Failure struct {
RuntimeErr error
ApiErr string
2018-04-20 17:59:26 +03:00
ApiErrs map[string]string
}
// FailureResponse convert json error response into object
type FailureResponse struct {
2018-04-23 16:28:54 +03:00
ErrorMsg string `json:"errorMsg,omitempty"`
2018-04-20 17:59:26 +03:00
Errors map[string]string `json:"errors,omitempty"`
}