SafeErrorResolver defines an error interface for resolving the public safe error fields.
| 28 | |
| 29 | // SafeErrorResolver defines an error interface for resolving the public safe error fields. |
| 30 | type SafeErrorResolver interface { |
| 31 | // Resolve allows modifying and returning a new public safe error data map. |
| 32 | Resolve(errData map[string]any) any |
| 33 | } |
| 34 | |
| 35 | // ApiError defines the struct for a basic api error response. |
| 36 | type ApiError struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…