Exception: Opendoor::PartnerSdk::ValidationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, field = nil) ⇒ ValidationError

Returns a new instance of ValidationError.



6
7
8
9
10
# File 'lib/opendoor/partner_sdk/errors.rb', line 6

def initialize(message, field = nil)
  super(message)
  @code = "VALIDATION_ERROR"
  @field = field
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/opendoor/partner_sdk/errors.rb', line 4

def code
  @code
end

#fieldObject (readonly)

Returns the value of attribute field.



4
5
6
# File 'lib/opendoor/partner_sdk/errors.rb', line 4

def field
  @field
end