Exception: AddressFinder::NotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/addressfinder/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



16
17
18
# File 'lib/addressfinder/errors.rb', line 16

def body
  @body
end

#pxidObject (readonly)

Returns the value of attribute pxid.



16
17
18
# File 'lib/addressfinder/errors.rb', line 16

def pxid
  @pxid
end

#statusObject (readonly)

Returns the value of attribute status.



16
17
18
# File 'lib/addressfinder/errors.rb', line 16

def status
  @status
end