Exception: OEHClient::Exception::HTTPRequestException
- Inherits:
-
Exception
- Object
- Exception
- OEHClient::Exception::HTTPRequestException
- Defined in:
- lib/oehclient/exception.rb
Overview
HTTPRequestException is used to manage any REST error code that is returned by the OEH
server
Instance Attribute Summary collapse
-
#http_code ⇒ Object
Returns the value of attribute http_code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ HTTPRequestException
constructor
override the constructor to add the code value to exception class.
Constructor Details
permalink #initialize(msg, code) ⇒ HTTPRequestException
override the constructor to add the code value to exception class
34 35 36 37 |
# File 'lib/oehclient/exception.rb', line 34 def initialize(msg, code) super(msg) @http_code = code end |
Instance Attribute Details
permalink #http_code ⇒ Object
Returns the value of attribute http_code.
31 32 33 |
# File 'lib/oehclient/exception.rb', line 31 def http_code @http_code end |