AppException

sealed class AppException : RuntimeException

Errors app

Types

Link copied to clipboard
data class Error400(val msg: String? = null, val status: HttpStatusCode = HttpStatusCode.BadRequest) : AppException

Error 400

Link copied to clipboard
data class Error404(val msg: String? = null, val status: HttpStatusCode = HttpStatusCode.NotFound) : AppException

Error 404

Link copied to clipboard
data class Error422(    val msg: String? = null,     val violation: Set<ConstraintViolation<*>> = emptySet(),     val status: HttpStatusCode = HttpStatusCode.UnprocessableEntity) : AppException

Error 422

Link copied to clipboard
data class Error500(val status: HttpStatusCode = HttpStatusCode.InternalServerError) : AppException

Error 500

Link copied to clipboard
data class ErrorAuthorized(val status: HttpStatusCode = HttpStatusCode.Unauthorized) : AppException

Error authorized

Link copied to clipboard
data class ErrorForbidden(val msg: String? = null, val status: HttpStatusCode = HttpStatusCode.Forbidden) : AppException

Error forbidden

Link copied to clipboard
data class JsonDecodingException(val msg: String? = null, val status: HttpStatusCode = HttpStatusCode.BadRequest) : AppException

Error json parse

Properties

Link copied to clipboard
open val exception: IDataException
Link copied to clipboard
open val status: HttpStatusCode

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard