E7xxx: I/O and system errors
This page is generated by scripts/docs/gen-error-code-docs.py from the define_codes! registry in src/util/diagnostic/codes/ and locales/en.json. Do not edit it by hand. Change the wording in locales/*.json, change the code table in define_codes!, then rerun python scripts/docs/gen-error-code-docs.py.
Errors produced by failed I/O operations and system calls.
This family holds 4 codes, all registered in the define_codes! registry, with the category Io. See the error code index for the complete inventory.
Code Overview
| Code | Name | Category | span exempt | Template | Emission sites |
|---|---|---|---|---|---|
E7001 | File not found | Io | No | file not found: '{path}' | ⚠ Not yet emitted |
E7002 | Permission denied | Io | No | permission denied: '{path}' | ⚠ Not yet emitted |
E7003 | I/O error | Io | No | I/O error: {reason} | ⚠ Not yet emitted |
E7004 | Network error | Io | No | Network error: {reason} | ⚠ Not yet emitted |
Code Details
E7001: File not found
- Category:
Io - span exempt: No
- Constructor:
ErrorCodeDefinition::file_not_found(path) - Template:
file not found: '{path}' - Message: the specified file does not exist
- Help: check the file path and ensure the file exists
- Emission site: ⚠ Not yet emitted (the registry retains the code, but non-test code never calls it, so users cannot trigger it)
- Source comment name:
文件未找到
E7002: Permission denied
- Category:
Io - span exempt: No
- Constructor:
ErrorCodeDefinition::permission_denied(path) - Template:
permission denied: '{path}' - Message: insufficient permissions to access the file
- Help: check file permissions or run with appropriate permissions
- Emission site: ⚠ Not yet emitted (the registry retains the code, but non-test code never calls it, so users cannot trigger it)
- Source comment name:
权限被拒绝
E7003: I/O error
- Category:
Io - span exempt: No
- Constructor:
ErrorCodeDefinition::io_error(reason) - Template:
I/O error: {reason} - Message: an unspecified I/O error occurred
- Help: check error details for more information
- Emission site: ⚠ Not yet emitted (the registry retains the code, but non-test code never calls it, so users cannot trigger it)
- Source comment name:
I/O 错误
E7004: Network error
- Category:
Io - span exempt: No
- Constructor:
ErrorCodeDefinition::network_error(reason) - Template:
Network error: {reason} - Message: A network error occurred
- Help: Check the network connection and retry
- Emission site: ⚠ Not yet emitted (the registry retains the code, but non-test code never calls it, so users cannot trigger it)
- Source comment name:
网络错误
