HttpException

open class HttpException(problem: <Error class: unknown class>, cause: Throwable? = null) : RuntimeException

An exception used to indicate a problem serving an HTTP request. It includes details used to construct a proper response.

Parameters

problem

the problem to use as the basis for this exception. In case the problem does not contain a status code, an internal server error 500 is assumed.

cause

the exception that caused this problem or null if none.

Inheritors

Constructors

Link copied to clipboard
constructor(statusCode: HttpStatusCode = HttpStatusCode.InternalServerError, title: String? = null, details: String? = null, type: String? = null, instance: String? = null, cause: Throwable? = null)

Creates a new instance of this exception based on a status code and other details contributing to a Problem.

constructor(problem: <Error class: unknown class>, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard
val problem: <Error class: unknown class>

A description of the problem this exception is reporting to the caller.

Functions

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
Link copied to clipboard