Package-level declarations

Types

Link copied to clipboard
typealias HandlerFunction = suspend (call: ApplicationCall, cause: Throwable) -> Unit

Specifies how the exception should be handled.

Link copied to clipboard

A StatusPages plugin configuration.

Properties

Link copied to clipboard

A plugin that handles exceptions and status codes. Useful to configure default error pages.

Functions

Link copied to clipboard
fun <T : Throwable> <Error class: unknown class>.exception(klass: Class<T>, handler: suspend PipelineContext<Unit, PipelineCall>.(T) -> Unit)

Register an exception handler for the exception class klass and its children

Link copied to clipboard
fun <Error class: unknown class>.statusFile(vararg code: HttpStatusCode, filePattern: String)

Register a status page file(s) using filePattern for multiple status code list