Class

FileOperationError

FileOperationError(operation, filePath, originalError)

File operation errors Thrown when file read or write operations fail

Constructor

# new FileOperationError(operation, filePath, originalError)

Create a file operation error

Parameters:
Name Type Description
operation string

Type of operation that failed (e.g., 'read', 'write')

filePath string

Path to the file where operation failed

originalError Error

The underlying error object from Node.js

View Source src/util/errors.js, line 210