6 * Shares between aros and unix the array texts[], with provides
7 * error strings and requester types.
8 * The data is in this header file to avoid further splitting
9 * up into a header file and a code file. This is possible,
10 * here, as this file should always be included in just one
11 * file, the source code for error handling.
16 * showReqStruct: a group describing particular requester:
17 * - text - content to be displayed
18 * - type - set of buttons for the requester
20 const struct showReqStruct
23 enum showReqType type
;
27 {"No ioport", Req_Cancel
},
28 {"Couldn't open device %s", Req_Cancel
},
29 {"Couldn't add disk as dosentry", Req_Cancel
},
30 {"Disk is not validated!", Req_CheckCancel
},
31 {"Wrong data block %lu", Req_Cancel
},
32 {"Wrong checksum on block %lu", Req_CheckCancel
},
33 {"Missing some more bitmap blocks", Req_Cancel
},
34 {"Wrong blocktype on block %lu", Req_CheckCancel
},
35 {"Read/Write Error %ld accessing block %lu", Req_Cancel
},
36 {"*** This may be a non-AFS disk. ***\n"
37 "Any attempt to fix it in this case may render the original\n"
38 "file system invalid, and its contents unrecoverable.\n\n"
39 "Please select what to do", Req_ContinueCancel
},
40 {"Block %lu used twice", Req_Cancel
},
41 {"Block %lu is located outside volume scope\nand will be removed.", Req_Continue
},
42 {"Repairing disk structure will lead to data loss.\n"
43 "It's best to make a backup before proceeding.\n\n"
44 "Please select what to do.", Req_ContinueCancel
},
45 {"Volume\n%s\nis write protected", Req_RetryCancel
},
46 {NULL
, Req_Cancel
}, // Error has already been reported.
47 {"Unknown error", Req_Cancel
}
50 * This array can be accessed with an enum of error codes. These
51 * are included in error.h.