Companion

Types

Link copied to clipboard
class APIExceptionProxy<EX : Throwable, B>(val status: HttpStatusCode, val exceptionClass: KClass<EX>, val example: B? = null, val contentType: KType = unitKType, val contentGen: (EX) -> B? = null) : APIException<EX, B>

Functions

Link copied to clipboard
inline fun <EX : Throwable> apiException(status: HttpStatusCode): APIException<EX, Unit>
inline fun <EX : Throwable, B> apiException(status: HttpStatusCode, example: B? = null, noinline gen: (EX) -> B? = null): APIException<EX, B>