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/core/errors.js, line 209

Extends

Methods

# toString() → {string}

Convert error to formatted string with context information

Overrides:

View Source src/core/errors.js, line 28

Formatted error message including context

string