home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-28 | 11.2 KB | 239 lines | [TEXT/MPS ] |
- /*
- File: LogErrors.r
-
- Contains: The 'STR#' resources for PMSAM errors
-
- Written by: Tim Harnett
-
- Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <12> 2/9/95 TMH added LimitErrorReport flag, added strings for CTB errors
- <11> 12/2/94 TMH added errEWorldBadPassword
- <10> 11/18/94 TMH host force logout errors
- <9> 10/20/94 TMH added errCantOpenCTBConnection etc..
- <8> 10/18/94 TMH made some errors correctable
- <7> 10/18/94 TMH added errUnableToInitCTB
- <6> 10/13/94 TMH added errNoGatewayRecipients
- <5> 10/11/94 TMH added errCommConfigParamMissingOrCorrupt
- <4> 10/7/94 TMH added maxReport limiting
- <3> 10/6/94 TMH more errors
- <2> 9/27/94 TMH added errCorruptIncomingLetterFile moved restemplate to
- ResTemplates.r
- <1> 9/20/94 TMH Abandon RoadsideRest embrace Mercury
- 9/6/94 TMH xxx put comment here xxx
-
- To Do:
- */
-
-
- #include "Types.r"
- #include "LogErrors.h"
-
-
- #define kMailMSAMErrorStringListID 128 // From OCEMail.h
- #define kMailMSAMActionStringListID 129 // From OCEMail.h
-
-
- resource 'STR#' (kMailMSAMErrorStringListID, "errors") {
- {
-
- "An PMSAM error. Undefined message."; // 1
- "Why is error 0 being reported?"; // 2
- "A system error (a negative number). Undefined message."; // 3
- "Successfully sent a letter."; // 4
- "Unable to open incoming letter file."; // 5
- "Whoa we are out of memory."; // 6
- "File in incoming folder is corrupt. Not recognized as a letter."; // 7
- "not used"; // 8 - no used
- "Some setup information is missing or corrupt."; // 9 - errMSAMSetupInfoCorrupt
- "An AOCE Authentication Error occurred."; // 10 - AOCE General Errors -1500 to -1539
- "An AOCE General Error occurred."; // 11 - AOCE Authentication Errors -1540 to -1609
- "An AOCE AOCE Catalog Error occurred."; // 12 - AOCE Authentication Errors -1540 to -1609
- "An AOCE AOCE Mail Error occurred."; // 13 - AOCE Mail Errors -15040 to -15089
- "An AOCE AOCE Messaging Error occurred."; // 14 - AOCE Messaging Errors -15090 to -15169
-
- "A file system error occurred."; // 15 - some kind file system error occurred
- "A file was not found."; // 16 - file not found
- "To many files are open."; // 17 - too many files open
- "We've read off the end of a file. Maybe its corrupt."; // 18 - eof error
- "Unable to write file. The disk is full."; // 19 - disk is full error
- "A file with the name alreay exists."; // 20 - duplicate file name.
-
-
- "EWorld connection parameters missing or corrupt."; // 21 - duplicate file name.
- "There are no recipients for the gateway in the letter."; // 22 - errNoGatewayRecipients
-
- "Unable to initialize the Communications Toolbox."; // 23 - errUnableToInitCTB
-
- "The Thread Manager is not installed."; // 24 - errThreadMgrNotInstalled
- "The EWorld gateway needs the Communications Toolbox."; // 25 - errCommToolBoxNotInstalled
- "System does not have AppleEvent manager."; // 26- errNeedAppleEventSupport
-
- "Unable to open communication toolbox connection."; // 27- errCantOpenCTBConnection
-
- "Host has logged you off. Reason unknown"; // 28- 650 when exact string reason is not in kEWorldForceLogoffStrResID
- "Your account is already signed on."; // 29- 651 maps to second string in kEWorldForceLogoffStrResID
- "Your EWorld account name is invalid."; // 30- 652 maps to first string in kEWorldForceLogoffStrResID
- "The EWorld host terminated connection because login" // 31- 653 maps to first string in kEWorldForceLogoffStrResID
- " timed out.";
- "Your EWorld password is invalid."; // 32- 654 maps to first string in kEWorldForceLogoffStrResID
-
-
- "Unable to connect to EWorld."; // 33 CTB Error cmRejected,cmFailed
- "Unexpectedly lost connection to EWorld." // 34 CTB Error cmTimeout,cmNotOpen
- "Communications Toolbox Failure." // 35 CTB Error other CTB errors (ever reported?)
-
- }
- };
-
-
- resource 'STR#' (kMailMSAMActionStringListID, "actions") {
- {
-
- "Whoopee."; // 1
- "ooops!?!?!"; // 2
- "Buy memory."; // 3
- "Remove it from the incoming folder. If you can figure out which one it is."; // 4
- "not used"; // 5 - no used
- "Delete the keychain. Ugh. And try again?"; // 6 - errUserKeyChainIsLocked
-
- "Check your communication setup values."; // 7 - errCommConfigParamMissingOrCorrupt
-
- "If you are not using your account from another location call EWorld customer" // 8 - account is busy
- " relations at 1-800-775-4556.";
-
- "Make sure your EWorld account name is correct in the key chain setup"; // 9 - invalid account name
- "Make sure your EWorld account password is correct in the key chain setup"; // 10 - invalid password
-
- "The communication link or host may be busy. Try again."; // 11 lost connection
- }
- };
-
-
-
- //-------------------------------------------------------
- // EWorld Forced Logoff Messages.
- // We match these to error numbers : errEWorldForcedLogOff+index.
- // To add a new message:
- // 1. add the string here.
- // 2. add it to the error table at the appropriate place. ie at
- // its match spot on the range errEWorldForcedLogOff+index.
- // voila.
- // 3. Note the source code does not have to change.
- //
- // Note: some of these strings are found in 'XS' packets
- // others in 'fD' packets.
- //----------------------------------------------------
-
-
-
- resource 'STR#' (kEWorldForceLogoffStrResID, "eworldforcedlogoff") {
- {
- "Your account is already signed on"; // 651
- "Invalid account."; // 652 // bad user name
- "Login timer expired"; // 653
- "Invalid password"; // 654 // bad password
- }
- };
-
-
-
-
- //-------------------------------------------------------------------------
- // Log Error Table
- //
- // CAUTION! Must track changes here in LogMessageTableEntry in LogErrors.h
- //--------------------------------------------------------------------------
-
- type 'etbl' {
- wide array {
- integer; // low err bounds,
- integer; // high err bounds
- integer correctable,error,warning,informational; // Error Type
- integer noModem = -2,miscError = -1, msamDefined = 0; // Error Code
- integer; // error index
- integer noAction =0; // error action
- longint alwaysReport=-1,dontReport=0, maxReports=32; // ...be nice don't fill the problem alert.
- longint = 0; // at run time we record the number of times here.
- };
- };
-
-
- resource 'etbl' (kLogErrorMapTable,"LogErrorTable", purgeable) {
-
- {
- 700,32767, informational,msamDefined,1,noAction,maxReports; // undefined pmsam error
-
- 655,699, informational,msamDefined,28,noAction,maxReports; // unrecognized host log off error messages. see EWorldForceLogoff string resource.
- 654,654, informational,msamDefined,32,10, maxReports; // invalid EWorld password
- 653,653, informational,msamDefined,31,noAction,maxReports; // login timer expired. (should never happen... it has)
- 652,652, informational,msamDefined,30,9, maxReports; // user name or password invalid
- 651,651, informational,msamDefined,29,8, maxReports; // account already busy.
- 650,650, informational,msamDefined,28,noAction,maxReports; // unrecognized host log off error messages.
- 600,649, informational,msamDefined,5,noAction,maxReports; // P3 error range
-
- 503,599, informational,msamDefined,5,noAction,maxReports; // undefined pmsam error
- 502,502, correctable, msamDefined,26,7, maxReports; // errNeedAppleEventSupport
- 501,501, correctable, msamDefined,25,7, maxReports; // errCommToolBoxNotInstalled
- 500,500, correctable, msamDefined,24,7, maxReports; // errThreadMgrNotInstalled
-
- 403,499, informational,msamDefined,5,noAction,maxReports; // undefined pmsam error
- 402,402, correctable, msamDefined,23,7, maxReports; // errCantOpenCTBConnection
- 401,401, correctable, msamDefined,23,7, maxReports; // errUnableToInitCTB
- 400,400, correctable, msamDefined,21,7, maxReports; // errCommConfigParamMissingOrCorrupt
-
- 303,399, informational,msamDefined,5,noAction,maxReports; // undefined pmsam error
- 302,302, informational,msamDefined,22,noAction,maxReports; // errNoGatewayRecipients
- 301,301, correctable, msamDefined,9,6, maxReports; // errMSAMSetupInfoCorrupt
- 300,300, informational,msamDefined,1,noAction,maxReports; // not used, undefined pmsam error
-
- 201,299, informational,msamDefined,1,noAction,maxReports; // undefined pmsam error
- 200,200, informational,msamDefined,7,4, maxReports; // file in incoming folder is corrupt.
- 101,199, informational,msamDefined,5,noAction,maxReports; // undefined pmsam error
- 100,100, informational,msamDefined,5,noAction,maxReports; // errUnableToOpenIncomingLetterFile
- 11,99, informational,msamDefined,1,noAction,maxReports; // undefined pmsam error
- 10,10, informational,msamDefined,4,1, maxReports; // for testing, successfully sent a letter
-
- 5,9, informational,msamDefined,35,noAction,maxReports; // CTB Error
- 4,4, informational,msamDefined,34,11, maxReports; // CTB Error
- 3,3, informational,msamDefined,34,11, maxReports; // CTB Error
- 2,2, informational,msamDefined,33,11, maxReports; // CTB Error
- 1,1, informational,msamDefined,33,11, maxReports; // CTB Error
-
-
- 0,0, informational,msamDefined,2,noAction,maxReports; // undefined, ???? error == 0
- -26,-1, informational,msamDefined,1,noAction,maxReports; // undefined pmsam error
-
- // File system errors
-
- -33,-27, informational,msamDefined,15,noAction,maxReports; // file system error
- -34,-34, informational,msamDefined,19,noAction,maxReports; // disk is full
- -38,-35, informational,msamDefined,15,noAction,maxReports; // file system error
- -39,-39, informational,msamDefined,18,noAction,maxReports; // read off the end of the file
- -41,-40, informational,msamDefined,15,noAction,maxReports; // file system error
- -42,-42, informational,msamDefined,17,noAction,maxReports; // too many files open.
- -43,-43, informational,msamDefined,16,noAction,maxReports; // a file not found.
- -47,-44, informational,msamDefined,15,noAction,maxReports; // file system error
- -48,-48, informational,msamDefined,20,noAction,maxReports; // duplicate file name.
-
- -107,-49, informational,msamDefined,1,noAction,maxReports; // undefined system error
-
- -109,-108, informational,msamDefined,6,3, maxReports; // out of memory errors
-
- -1499,-110, informational,msamDefined,1,noAction,maxReports; // undefined system error
-
- -1539,-1500, informational,msamDefined,10,noAction,maxReports; // AOCE General Errors -1500 to -1539
- -1609,-1540, informational,msamDefined,11,noAction,maxReports; // AOCE Authentication Errors -1540 to -1609
- -1680,-1610, informational,msamDefined,12,noAction,maxReports; // AOCE Catalog Errors -1610 to -1680
- -15039,-1679, informational,msamDefined,1,noAction, maxReports; // undefined system error
- -15089,-15040, informational,msamDefined,13,noAction,maxReports; // AOCE Mail Error -15040 to -15089
- -15169,-15090, informational,msamDefined,14,noAction,maxReports; // AOCE Messaging Errors -15090 to -15169
- -32768,-15170, informational,msamDefined,1,noAction, maxReports; // undefined system error
- }
-
- };
-
-
-