RAD Studio VCL Reference
|
EInOutError is the exception class for file input/output errors.
EInOutError = class(Exception);
class EInOutError : public Exception;
SysUtils
EInOutError is raised when an file input/output error occurs, provided I/O checking is enabled.
Error codes in the range 0-99 represent OS error conditions, which are different for Windows and Linux. Refer to the OS documentation for complete error summaries. The SysErrorMessage function returns descriptive text for OS errors.
Here are some common OS I/O errors, arranged by rough equivalents in Linux and Windows:
LinuxWindows
Linux |
|
Windows |
|
Error Code |
Description |
Error Code |
Description |
2 |
No such file or directory |
2 |
File not found |
3 |
Path not found |
|
|
5 |
I/O Error |
|
|
13 |
Permission denied |
5 |
Access denied |
20 |
Not a directory |
|
|
21 |
Is a directory |
|
|
32 |
Sharing violation |
|
|
Error codes in the range 100 to 149 represent error conditions raised by CLX. Here are the CLX I/O error codes: |
|
|
|
Error code |
Meaning |
100 |
End of File |
101 |
Disk Full |
102 |
File variable not assigned |
103 |
File not open |
104 |
File not open for input |
105 |
File not open for output |
106 |
Error in formatted input |
107 |
File already open |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|