api-client-go/errs/types.go

15 lines
327 B
Go
Raw Normal View History

package errs
// Failure struct implode runtime & api errors
type Failure struct {
RuntimeErr error
ApiErr string
ApiErrs []string
}
// FailureResponse convert json error response into object
type FailureResponse struct {
ErrorMsg string `json:"errorMsg,omitempty"`
Errors []string `json:"errors,omitempty"`
}