Skip to content

class Athena::Framework::Events::Exception
inherits Athena::EventDispatcher::Event #

Emitted when an exception occurs. See ATH::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 Getting Started docs for more information.

Included modules

Athena::Framework::Events::RequestAware Athena::Framework::Events::SettableResponse

Constructors#

.new(request : ATH::Request, exception : ::Exception)#

View source

Methods#

#exception : ::Exception#

The ::Exception associated with self.

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

View source

#exception=(exception : ::Exception)#

The ::Exception associated with self.

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

View source