Exception: Apia::RackError

Inherits:
StandardError show all
Defined in:
lib/apia/rack_error.rb

Instance Method Summary collapse

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, message)
  @http_status = http_status
  @code = code
  @message = message
end

Instance Method Details

#tripletObject



12
13
14
# File 'lib/apia/rack_error.rb', line 12

def triplet
  Rack.error_triplet(@code, description: @message, status: @http_status)
end