Exception: Rentlinx::InvalidObject

Inherits:
RentlinxError show all
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

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