(kind string)
| 64 | } |
| 65 | |
| 66 | func (e *APIError) HasCause(kind string) bool { |
| 67 | if c, ok := e.Info_ReadOnly["cause"].(Cause); ok { |
| 68 | return c.Kind() == kind |
| 69 | } else if cs, ok := e.Info_ReadOnly["causes"].([]Cause); ok { |
| 70 | for _, c := range cs { |
| 71 | if c.Kind() == kind { |
| 72 | return true |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | return false |
| 78 | } |
| 79 | |
| 80 | func (e *APIError) SkipLogging() bool { |
| 81 | return e.Kind.IsSkipLoggingToExternalService |
no test coverage detected