Exception: PostcodeInfo::APIExceptionWrapper

Inherits:
Exception
  • Object
show all
Defined in:
lib/postcodeinfo/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_exception, response) ⇒ APIExceptionWrapper

Returns a new instance of APIExceptionWrapper.



5
6
7
8
# File 'lib/postcodeinfo/exceptions.rb', line 5

def initialize(original_exception, response)
  self.original_exception = original_exception
  self.response = response
end

Instance Attribute Details

#original_exceptionObject

Returns the value of attribute original_exception.



3
4
5
# File 'lib/postcodeinfo/exceptions.rb', line 3

def original_exception
  @original_exception
end

#responseObject

Returns the value of attribute response.



3
4
5
# File 'lib/postcodeinfo/exceptions.rb', line 3

def response
  @response
end