class

Kemal::Exceptions::BadRequest

Inherits Exception < Reference < Object

Raised by ParamParser when the framework cannot parse the request body (broken JSON, unparseable multipart). Rendered as 400. Only wraps failures from Kemal's own body parsing, so a parse error inside handler code keeps its original class and 500 status.

Constructors

new(message : String | Nil = nil, cause : Exception | Nil = nil)
Source