ExceptionHandler

data class ExceptionHandler<E : Exception>(val exception: KClass<E>, val clear: Boolean = true, val block: HttpExceptionCallbackType<E>) : HttpHandler, Handler<HttpCall>

Constructors

Link copied to clipboard
constructor(exception: KClass<E>, clear: Boolean = true, block: HttpExceptionCallbackType<E>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val callback: (Context<HttpCall>) -> Context<HttpCall>
Link copied to clipboard
val clear: Boolean = true
Link copied to clipboard
val exception: KClass<E>
Link copied to clipboard
open override val handlerPredicate: HttpPredicate
Link copied to clipboard
open override val predicate: (Context<HttpCall>) -> Boolean

Functions

Link copied to clipboard
open override fun addPrefix(prefix: String): HttpHandler
Link copied to clipboard
open fun byMethod(): Map<HttpMethod, HttpHandler>
Link copied to clipboard
open fun filter(method: HttpMethod): HttpHandler
Link copied to clipboard
open override fun process(context: Context<HttpCall>): Context<HttpCall>
open fun process(request: HttpRequestPort): HttpContext
Link copied to clipboard
open fun processHttp(context: HttpContext): HttpContext