Exception: Rentlinx::InvalidObject
- Inherits:
-
RentlinxError
- Object
- StandardError
- RentlinxError
- Rentlinx::InvalidObject
- Defined in:
- lib/rentlinx/errors.rb
Overview
Thrown when an object that does not pass validation tries to post or update
Instance Method Summary collapse
-
#initialize(object) ⇒ InvalidObject
constructor
A new instance of InvalidObject.
Constructor Details
#initialize(object) ⇒ InvalidObject
Returns a new instance of InvalidObject.
30 31 32 |
# File 'lib/rentlinx/errors.rb', line 30 def initialize(object) super("#{object.class} is invalid: #{object.validate}") end |