- Defined in:
All of the known errors in Ohm can be traced back to one of these exceptions.
Comment.new.id # => Error Comment.new.key # => Error Solution: you need to save your model first.
Comment.find(:foo => "Bar") # => Error Solution: add an index with `Comment.index :foo`.
Raised when trying to save an object with a `unique` index for which the value already exists. Solution: rescue `Ohm::UniqueIndexViolation` during save, but also, do some validations even before attempting to save.
Direct Known Subclasses