Sha256: 08fedf4d2b66def4eb9dbabbba580955780f89e6645b669b528b73316a11ed20
Contents?: true
Size: 1 KB
Versions: 5
Compression:
Stored size: 1 KB
Contents
module Keymap # Generic Keymap exception class. class KeymapError < StandardError end # Raised when adapter not specified on connection (or configuration file <tt>config/database.yml</tt> # misses adapter field). class AdapterNotSpecified < KeymapError end # Raised when Keymap cannot find database adapter specified in <tt>config/database.yml</tt> or programmatically. class AdapterNotFound < KeymapError end # Raised when connection to the database could not been established (for example when <tt>connection=</tt> # is given a nil object). class ConnectionNotEstablished < KeymapError end # The library uses this exception to distinguish a deliberate rollback from other # exceptional situations. Normally, raising an exception will cause the # +transaction+ method to rollback the database transaction *and* pass on the # exception. But if you raise a Rollback exception, then the database transaction # will be rolled back, without passing on the exception. class Rollback < KeymapError end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
keymap-0.3.2 | lib/keymap/errors.rb |
keymap-0.3.1 | lib/keymap/errors.rb |
keymap-0.3.0 | lib/keymap/errors.rb |
keymap-0.2.0 | lib/keymap/errors.rb |
keymap-0.1.0 | lib/keymap/errors.rb |