Module: Hanami::Action::Throwable

Defined in:
lib/hanami/action/throwable.rb

Overview

Throw API

See Also:

  • ClassMethods#handle_exception
  • #halt
  • #status

Since:

  • 0.1.0

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

RACK_ERRORS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 0.2.0

'rack.errors'.freeze
RACK_EXCEPTION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

This isn’t part of Rack SPEC

Exception notifiers use rack.exception instead of rack.errors, so we need to support it.

'rack.exception'.freeze

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



33
34
35
# File 'lib/hanami/action/throwable.rb', line 33

def self.included(base)
  base.extend ClassMethods
end