Exception: ExperianAddressValidation::Errors::ResponseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, body:) ⇒ ResponseError

Returns a new instance of ResponseError.



8
9
10
11
12
13
# File 'lib/errors/response_error.rb', line 8

def initialize(status:, body:)
  @status = status
  @body = body

  super(build_message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



6
7
8
# File 'lib/errors/response_error.rb', line 6

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/errors/response_error.rb', line 6

def status
  @status
end