Exception: PostcodeInfo::APIExceptionWrapper
- Inherits:
-
Exception
- Object
- Exception
- PostcodeInfo::APIExceptionWrapper
- Defined in:
- lib/postcodeinfo/exceptions.rb
Direct Known Subclasses
InvalidAuthToken, ServerError, ServiceUnavailable, UnparseableResponse, UnrecognisedPostcode
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
Returns the value of attribute original_exception.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(original_exception, response) ⇒ APIExceptionWrapper
constructor
A new instance of APIExceptionWrapper.
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_exception ⇒ Object
Returns the value of attribute original_exception.
3 4 5 |
# File 'lib/postcodeinfo/exceptions.rb', line 3 def original_exception @original_exception end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/postcodeinfo/exceptions.rb', line 3 def response @response end |