Exception: Apia::RackError
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- Apia::RackError
- Defined in:
- lib/apia/rack_error.rb
Instance Method Summary collapse
-
#initialize(http_status, code, message) ⇒ RackError
constructor
A new instance of RackError.
- #triplet ⇒ Object
Constructor Details
#initialize(http_status, code, message) ⇒ RackError
Returns a new instance of RackError.
6 7 8 9 10 |
# File 'lib/apia/rack_error.rb', line 6 def initialize(http_status, code, ) @http_status = http_status @code = code @message = end |
Instance Method Details
#triplet ⇒ Object
12 13 14 |
# File 'lib/apia/rack_error.rb', line 12 def triplet Rack.error_triplet(@code, description: @message, status: @http_status) end |