Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#amunits]

ErrorReport

Displays a Retry/Cancel requester for an error

Declaration

Source position: amigados.pas line 1627

function ErrorReport(

  code: LongInt;

  type_: LongInt;

  arg1: LongWord;

  device: pMsgPort

):LongBool;

Arguments

code

  

Error code to put a requester up for.

type_

  

Request type

arg1

  

Variable parameter (see type)

device

  

Optional handler task address (obsolete!)

Function result

Cancel/Retry indicator (0 means Retry)

Description

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:

REPORT_LOCK
arg1 is a lock.
REPORT_VOLUME
arg1 is a volumenode.
REPORT_INSERT
arg1 is the string for the volumename

See also

Fault

  

Returns the text associated with a DOS error code

IoErr

  

Return extra information from the system


Documentation generated on: 2021-07-30