Exception: AddressFinder::RequestRejectedError
- Inherits:
-
StandardError
- Object
- StandardError
- AddressFinder::RequestRejectedError
- Defined in:
- lib/addressfinder/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ RequestRejectedError
constructor
A new instance of RequestRejectedError.
Constructor Details
#initialize(status, body) ⇒ RequestRejectedError
Returns a new instance of RequestRejectedError.
6 7 8 9 10 11 |
# File 'lib/addressfinder/errors.rb', line 6 def initialize(status, body) @status = status @body = body super("Request rejected with status code: #{status}\n#{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/addressfinder/errors.rb', line 4 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/addressfinder/errors.rb', line 4 def status @status end |