vertx-kuickstart-core / dev.fuelyour.vertxkuickstartcore.exceptions / ResponseCodeException

ResponseCodeException

open class ResponseCodeException : RuntimeException

Base exception class to allow the return of nicely formatted error messages to the callers of the web service api.

Constructors

<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)

Properties

details

val details: JsonArray

statusCode

val statusCode: HTTPStatusCode

Functions

asJson

fun asJson(): JsonObject

Companion Object Functions

fromStatusCode

fun fromStatusCode(statusCode: HTTPStatusCode?, errorMessage: String, details: JsonArray): ResponseCodeException

Inheritors

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