class Athena::Routing::Events::Exception
- Athena::Routing::Events::Exception
- Athena::EventDispatcher::Event
- Reference
- Object
Overview
Emitted when an exception occurs. See ART::Exceptions for more information on how exception handling works in Athena.
This event can be listened on to recover from errors or to modify the exception before it's rendered.
Included Modules
Defined in:
events/exception_event.crConstructors
Instance Method Summary
-
#exception : ::Exception
The
::Exceptionassociated withself. -
#exception=(exception : ::Exception)
The
::Exceptionassociated withself.
Instance methods inherited from module Athena::Routing::Events::RequestAware
request : HTTP::Request
request
Constructor methods inherited from module Athena::Routing::Events::RequestAware
new(request : HTTP::Request)
new
Instance methods inherited from module Athena::Routing::Events::SettableResponse
response : ART::Response | Nil
response,
response=(response : ART::Response) : Nil
response=
Constructor Detail
Instance Method Detail
def exception : ::Exception
#
The ::Exception associated with self.
Can be replaced by an ART::Listeners::Error.
def exception=(exception : ::Exception)
#
The ::Exception associated with self.
Can be replaced by an ART::Listeners::Error.