mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-28 15:56:05 +03:00
15 lines
327 B
Go
15 lines
327 B
Go
|
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"`
|
||
|
}
|