Exception: Yoker::FileOperationError

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

Overview

Raised when file operations fail

Direct Known Subclasses

BackupError

Instance Method Summary collapse

Constructor Details

#initialize(operation, path, reason = nil) ⇒ FileOperationError

Returns a new instance of FileOperationError.



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

def initialize(operation, path, reason = nil)
  message = "Failed to #{operation} '#{path}'"
  message += ": #{reason}" if reason
  super(message)
end