Sha256: 08508b62e33584351fda7a35e570aa310d13f50e29539959914db183a5b45a7d

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

module GitModel
  
  # Generic GitModel exception class.
  class GitModelError < StandardError
  end
  
  # Raised when GitModel cannot find record by given id or set of ids.
  class RecordNotFound < GitModelError
  end
  
  # Raised by GitModel::Persistable.save! and GitModel::Persistable.create! methods when record cannot be
  # saved because record is invalid.
  class RecordNotSaved < GitModelError
  end
  
  class RecordExists < GitModelError
  end
  
  class RecordDoesntExist < GitModelError
  end
   
  class NullId < GitModelError
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitmodel-0.0.2 lib/gitmodel/errors.rb
gitmodel-0.0.1 lib/gitmodel/errors.rb