Exception: AddressFinder::NotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- AddressFinder::NotFoundError
- Defined in:
- lib/addressfinder/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#pxid ⇒ Object
readonly
Returns the value of attribute pxid.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body, pxid) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(status, body, pxid) ⇒ NotFoundError
Returns a new instance of NotFoundError.
18 19 20 21 22 23 24 |
# File 'lib/addressfinder/errors.rb', line 18 def initialize(status, body, pxid) @status = status @body = body @pxid = pxid super("The address or location you have requested could not be found.\n#{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
16 17 18 |
# File 'lib/addressfinder/errors.rb', line 16 def body @body end |
#pxid ⇒ Object (readonly)
Returns the value of attribute pxid.
16 17 18 |
# File 'lib/addressfinder/errors.rb', line 16 def pxid @pxid end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
16 17 18 |
# File 'lib/addressfinder/errors.rb', line 16 def status @status end |