Skip to content

Commit e6f1ccf

Browse files
docs: update readme exception docs (#297)
1 parent 5c17aa7 commit e6f1ccf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,16 @@ The SDK throws custom unchecked exception types:
183183

184184
- [`OnebusawaySdkServiceException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/OnebusawaySdkServiceException.kt): Base class for HTTP errors. See this table for which exception subclass is thrown for each HTTP status code:
185185

186-
| Status | Exception |
187-
| ------ | ------------------------------- |
188-
| 400 | `BadRequestException` |
189-
| 401 | `AuthenticationException` |
190-
| 403 | `PermissionDeniedException` |
191-
| 404 | `NotFoundException` |
192-
| 422 | `UnprocessableEntityException` |
193-
| 429 | `RateLimitException` |
194-
| 5xx | `InternalServerException` |
195-
| others | `UnexpectedStatusCodeException` |
186+
| Status | Exception |
187+
| ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
188+
| 400 | [`BadRequestException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/BadRequestException.kt) |
189+
| 401 | [`UnauthorizedException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/UnauthorizedException.kt) |
190+
| 403 | [`PermissionDeniedException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/PermissionDeniedException.kt) |
191+
| 404 | [`NotFoundException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/NotFoundException.kt) |
192+
| 422 | [`UnprocessableEntityException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/UnprocessableEntityException.kt) |
193+
| 429 | [`RateLimitException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/RateLimitException.kt) |
194+
| 5xx | [`InternalServerException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/InternalServerException.kt) |
195+
| others | [`UnexpectedStatusCodeException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/UnexpectedStatusCodeException.kt) |
196196

197197
- [`OnebusawaySdkIoException`](onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/errors/OnebusawaySdkIoException.kt): I/O networking errors.
198198

0 commit comments

Comments
 (0)