Exception: Nvoi::Errors::DatabaseError

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

Overview

Database errors

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Constructor Details

#initialize(operation, message, details: nil) ⇒ DatabaseError

Returns a new instance of DatabaseError.



79
80
81
82
# File 'lib/nvoi/errors.rb', line 79

def initialize(operation, message, details: nil)
  @operation = operation
  super("database #{operation}: #{message}", details:)
end

Instance Attribute Details

#operationObject (readonly)

Returns the value of attribute operation.



77
78
79
# File 'lib/nvoi/errors.rb', line 77

def operation
  @operation
end