Package-level declarations

Types

Link copied to clipboard
class BadRequestException(val error: String?, val apiMessage: String?) : KoaniException

Exception thrown when a 400 Bad Request response is received from the API.

Link copied to clipboard
class ForbiddenException(val error: String?, val apiMessage: String?) : KoaniException

Exception thrown when a 403 Forbidden response is received from the API.

Link copied to clipboard
sealed class KoaniException : Exception

Base class for all exceptions thrown by the Koani library.

Link copied to clipboard
class NotFoundException(val error: String?, val apiMessage: String?) : KoaniException

Exception thrown when a 404 Not Found response is received from the API.

Link copied to clipboard

Exception thrown when a redirection error occurs.

Link copied to clipboard
class ServerResponseException(val statusCode: Int) : KoaniException

Exception thrown when a 5xx Server Error response is received from the API.

Link copied to clipboard
class UnauthorizedException(val error: String?, val apiMessage: String?) : KoaniException

Exception thrown when a 401 Unauthorized response is received from the API.