Exception: Yoker::DatabaseError
- Defined in:
- lib/yoker/errors.rb
Overview
Raised when database operations fail
Instance Method Summary collapse
-
#initialize(operation, database, reason = nil) ⇒ DatabaseError
constructor
A new instance of DatabaseError.
Constructor Details
#initialize(operation, database, reason = nil) ⇒ DatabaseError
Returns a new instance of DatabaseError.
113 114 115 116 117 |
# File 'lib/yoker/errors.rb', line 113 def initialize(operation, database, reason = nil) = "Database operation '#{operation}' failed for #{database}" += ": #{reason}" if reason super() end |