Exception reference¶
All SDK-specific failures derive from OkatanaException.
| Type | Trigger | Key properties |
|---|---|---|
OkatanaConfigurationException |
invalid client configuration | message |
OkatanaRequestValidationException |
local request violates a known contract limit | message |
OkatanaTransportException |
timeout or HTTP transport problem | inner exception |
OkatanaApiException |
non-success HTTP status not mapped more specifically | StatusCode, ResponseBody, ResponseJson |
OkatanaAuthenticationException |
401 | inherited response context |
OkatanaAuthorizationException |
403 | inherited response context |
OkatanaNotFoundException |
404 | inherited response context |
OkatanaValidationException |
422 | Errors dictionary plus response context |
OkatanaRateLimitException |
429 | RetryAfter plus response context |
OkatanaUnexpectedResponseException |
successful response is malformed/unsafe | message and optional inner exception |
ResponseBody may contain application data. Treat it as sensitive when logging exceptions.