DebugResponseException

Carries response out of the code of a route to the client. A declared route answers with response when its handler throws this, and so does the server for the DebugTab.handle of any tab, so a helper deep in a handler can end the request with an error, such as throw DebugResponseException(DebugResponse.error("No such file", 404, field = "file")).

Constructors

Link copied to clipboard
constructor(response: DebugResponse)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard

The response that the client gets.