Exception: OEHClient::Exception::HTTPRequestException

Inherits:
Exception
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#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

#http_codeObject

Returns the value of attribute http_code.



31
32
33
# File 'lib/oehclient/exception.rb', line 31

def http_code
  @http_code
end