Displays a Retry/Cancel requester for an error
Source position: amigados.pas line 2515
function ErrorReport( |
Code: LongInt; |
Type_: LongInt; |
Arg1: LongWord; |
Device: PMsgPort |
):LongBool; |
Code |
|
Error code to put a requester up for. |
Type_ |
|
Request type |
Arg1 |
|
Variable parameter (see type) |
Device |
|
Optional handler task address (obsolete!) |
Cancel/Retry indicator (0 means Retry)
Based on the request type, this routine formats the appropriate requester to be displayed. If the code is not understood, it returns DOSTRUE immediately. Returns DOSTRUE if the user selects CANCEL or if the attempt to put up the requester fails, or if the process pr_WindowPtr is -1. Returns DOSFALSE if the user selects Retry. The routine will retry on DISKINSERTED for appropriate error codes. These return values are the opposite of what AutoRequest returns.
Note: this routine sets IoErr() to code before returning.
Error codes to put a requester up for. Current valid error codes are: ERROR_DISK_NOT_VALIDATED, ERROR_DISK_WRITE_PROTECTED, ERROR_DISK_FULL, ERROR_DEVICE_NOT_MOUNTED, ERROR_NOT_A_DOS_DISK, ERROR_NO_DISK, ABORT_DISK_ERROR, ABORT_BUSY
Valid Request types:
|
Returns the text associated with a DOS error code |
|
|
Return extra information from the system |