Exception: Yoker::DatabaseError

Inherits:
Error
  • Object
show all
Defined in:
lib/yoker/errors.rb

Overview

Raised when database operations fail

Instance Method Summary collapse

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)
  message = "Database operation '#{operation}' failed for #{database}"
  message += ": #{reason}" if reason
  super(message)
end