open class ResponseCodeException : RuntimeException
Base exception class to allow the return of nicely formatted error messages to the callers of the web service api.
<init> |
Base exception class to allow the return of nicely formatted error messages to the callers of the web service api. ResponseCodeException(message: String = "", details: JsonArray = JsonArray(), statusCode: HTTPStatusCode = BAD_REQUEST, throwable: Throwable? = null) |
details |
val details: JsonArray |
statusCode |
val statusCode: HTTPStatusCode |
asJson |
fun asJson(): JsonObject |
fromStatusCode |
fun fromStatusCode(statusCode: HTTPStatusCode?, errorMessage: String, details: JsonArray): ResponseCodeException |
AuthorizationException |
class AuthorizationException : ResponseCodeException |
BadRequestException |
class BadRequestException : ResponseCodeException |
ConflictException |
class ConflictException : ResponseCodeException |
ForbiddenException |
class ForbiddenException : ResponseCodeException |
ModelNotFoundException |
class ModelNotFoundException : ResponseCodeException |
ServiceException |
class ServiceException : ResponseCodeException |
TimeoutException |
class TimeoutException : ResponseCodeException |
TooManyRequestsException |
class TooManyRequestsException : ResponseCodeException |
UnavailableException |
class UnavailableException : ResponseCodeException |