Exception: Pepipost::APIException
- Inherits:
-
StandardError
- Object
- StandardError
- Pepipost::APIException
- Defined in:
- lib/pepipost/api_exception.rb
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
value store.
-
#response_code ⇒ Object
readonly
value store.
Instance Method Summary collapse
-
#initialize(reason, response_code, response_body) ⇒ APIException
constructor
The HTTP response code from the API request.
Constructor Details
#initialize(reason, response_code, response_body) ⇒ APIException
The HTTP response code from the API request
13 14 15 16 17 |
# File 'lib/pepipost/api_exception.rb', line 13 def initialize(reason, response_code, response_body) super(reason) @response_code = response_code @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
value store
7 8 9 |
# File 'lib/pepipost/api_exception.rb', line 7 def response_body @response_body end |
#response_code ⇒ Object (readonly)
value store
4 5 6 |
# File 'lib/pepipost/api_exception.rb', line 4 def response_code @response_code end |