map_file_operation_error(
exc: Exception,
) -> FileOperationError | None| Name | Type | Description |
|---|---|---|
exc* | Exception | The exception to classify. |
Map a caught exception to a standardized FileOperationError code.
Checks the exception type first, then falls back to inspecting the message
string for known patterns. Returns None when the exception does not match
any known file-operation error.