home *** CD-ROM | disk | FTP | other *** search
- unit Chyby;
-
- interface
-
- {Funkce "chyba" vrací vysvêtlení chybového kódu jako ⌐etêzec String:}
- function Chyba(cislo:Byte):String;
-
- implementation
-
- function Chyba(cislo:Byte):String;
- begin
- case cislo of
- 1: Chyba:='Invalid function number';
- 2: Chyba:='File not found';
- 3: Chyba:='Path not found';
- 4: Chyba:='Too many open files';
- 5: Chyba:='File access denied';
- 6: Chyba:='Invalid file handle';
- 12: Chyba:='Invalid file access code';
- 15: Chyba:='Invalid drive number';
- 16: Chyba:='Cannot remove current directory';
- 17: Chyba:='Cannot rename across drives';
- 18: Chyba:='No more files';
- 100: Chyba:='Disk read error';
- 101: Chyba:='Disk write error';
- 102: Chyba:='File not assigned';
- 103: Chyba:='File not open';
- 104: Chyba:='File not open for input';
- 105: Chyba:='File not open for output';
- 106: Chyba:='Invalid numeric format';
- 150: Chyba:='Disk is write-protected';
- 151: Chyba:='Bad drive request struct length';
- 152: Chyba:='Drive not ready';
- 154: Chyba:='CRC error in data';
- 156: Chyba:='Disk seek error';
- 157: Chyba:='Unknown media type';
- 158: Chyba:='Sector Not Found';
- 159: Chyba:='Printer out of paper';
- 160: Chyba:='Device write fault';
- 161: Chyba:='Device read fault';
- 162: Chyba:='Hardware failure';
- 200: Chyba:='Division by zero';
- 201: Chyba:='Range check error';
- 202: Chyba:='Stack overflow error';
- 203: Chyba:='Heap overflow error';
- 204: Chyba:='Invalid pointer operation';
- 205: Chyba:='Floating point overflow';
- 206: Chyba:='Floating point underflow';
- 207: Chyba:='Invalid floating point operation';
- 208: Chyba:='Overlay manager not installed';
- 209: Chyba:='Overlay file read error';
- 210: Chyba:='Object not initialized';
- 211: Chyba:='Call to abstract method';
- 212: Chyba:='Stream registration error';
- 213: Chyba:='Collection index out of range';
- 214: Chyba:='Collection overflow error';
- 215: Chyba:='Arithmetic overflow error';
- 216: Chyba:='General Protection fault';
- end;
- end;
-
- begin
- end.
-