Exception: BugherdClient::Errors::HttpRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bugherd_client/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = '', code = 500) ⇒ HttpRequestError

Returns a new instance of HttpRequestError.



24
25
26
27
# File 'lib/bugherd_client/errors.rb', line 24

def initialize(message = '', code = 500)
  super(message)
  @http_code = code
end

Instance Attribute Details

#http_codeObject

Returns the value of attribute http_code.



23
24
25
# File 'lib/bugherd_client/errors.rb', line 23

def http_code
  @http_code
end