(err error)
| 3957 | } |
| 3958 | |
| 3959 | func isModelSupportError(err error) bool { |
| 3960 | if err == nil { |
| 3961 | return false |
| 3962 | } |
| 3963 | status := statusCodeFromError(err) |
| 3964 | if status != http.StatusBadRequest && status != http.StatusUnprocessableEntity { |
| 3965 | return false |
| 3966 | } |
| 3967 | return isModelSupportErrorMessage(err.Error()) |
| 3968 | } |
| 3969 | |
| 3970 | func isModelSupportResultError(err *Error) bool { |
| 3971 | if err == nil { |
no test coverage detected