Sha256: 2156d214e445ca606795ecfb4c6efa3d2c2acc1d2564020d34f51e2621278598
Contents?: true
Size: 543 Bytes
Versions: 20
Compression:
Stored size: 543 Bytes
Contents
module AddressFinder class RequestRejectedError < StandardError attr_reader :status, :body def initialize(status, body) @status = status @body = body super("Request rejected with status code: #{status}\n#{body}") end end class NotFoundError < StandardError attr_reader :status, :body, :pxid 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 end end
Version data entries
20 entries across 20 versions & 1 rubygems