Error is nil-receiver safe; see ValidationError.Error.
()
| 457 | |
| 458 | // Error is nil-receiver safe; see ValidationError.Error. |
| 459 | func (e *APIError) Error() string { |
| 460 | if e == nil { |
| 461 | return "" |
| 462 | } |
| 463 | return e.Problem.Error() |
| 464 | } |
| 465 | |
| 466 | func NewAPIError(subtype Subtype, format string, args ...any) *APIError { |
| 467 | return &APIError{ |
no outgoing calls