def validate_object_history_available
      raise JSS::NoSuchItemError, 'Object not yet created' unless @id && @in_jss

      raise JSS::InvalidConnectionError, 'Not connected to MySQL' unless JSS::DB_CNX.connected?

      raise JSS::UnsupportedError, "Object History access is not supported for #{self.class} objects at this time" unless defined? self.class::OBJECT_HISTORY_OBJECT_TYPE
    end
def validate_object_history_available
      raise JSS::NoSuchItemError, 'Object not yet created' unless @id && @in_jss

      raise JSS::InvalidConnectionError, 'Not connected to MySQL' unless JSS::DB_CNX.connected?

      raise JSS::UnsupportedError, "Object History access is not supported for #{self.class} objects at this time" unless defined? self.class::OBJECT_HISTORY_OBJECT_TYPE
    end
Raise an exception if object history is not
 available for this object

 @return [void]