Exception: Opendoor::PartnerSdk::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Opendoor::PartnerSdk::ValidationError
- Defined in:
- lib/opendoor/partner_sdk/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(message, field = nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
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(, field = nil) super() @code = "VALIDATION_ERROR" @field = field end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/opendoor/partner_sdk/errors.rb', line 4 def code @code end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
4 5 6 |
# File 'lib/opendoor/partner_sdk/errors.rb', line 4 def field @field end |