Skip to content

Exception

class Athena::Routing::Events::Exception
inherits Athena::EventDispatcher::Event

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.

See the external documentation for more information.

Included modules

Athena::Routing::Events::RequestAware Athena::Routing::Events::SettableResponse

Class methods

.new(request : HTTP::Request, exception : ::Exception)

Methods

#exception : ::Exception

The ::Exception associated with self.

Can be replaced by an ART::Listeners::Error.

#exception=(exception : ::Exception)

The ::Exception associated with self.

Can be replaced by an ART::Listeners::Error.