Exception: Hyperdrive::Errors::HTTPError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/hyperdrive/errors/http_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, http_status_code = 500) ⇒ HTTPError

Returns a new instance of HTTPError.



7
8
9
10
# File 'lib/hyperdrive/errors/http_error.rb', line 7

def initialize(message, http_status_code = 500)
  @message = message
  @http_status_code = http_status_code
end

Instance Attribute Details

#http_status_codeObject (readonly)

Returns the value of attribute http_status_code.



6
7
8
# File 'lib/hyperdrive/errors/http_error.rb', line 6

def http_status_code
  @http_status_code
end

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/hyperdrive/errors/http_error.rb', line 6

def message
  @message
end