class Athena::Routing::Events::Exception

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.

See the external documentation for more information.

Included Modules

Defined in:

events/exception_event.cr

Constructors

Instance Method Summary

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

def self.new(request : HTTP::Request, exception : ::Exception) #

[View source]

Instance Method Detail

def exception : ::Exception #

The ::Exception associated with self.

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


[View source]
def exception=(exception : ::Exception) #

The ::Exception associated with self.

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


[View source]