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 |
Extends
Methods
# toString() → {string}
Convert error to formatted string with context information
- Overrides:
Formatted error message including context
string