home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Framework / RoboSamSlot / LogErrors.r < prev    next >
Encoding:
Text File  |  1995-07-28  |  11.2 KB  |  239 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        LogErrors.r
  3.  
  4.     Contains:    The 'STR#' resources for PMSAM errors
  5.  
  6.     Written by:    Tim Harnett
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <12>      2/9/95    TMH        added LimitErrorReport flag, added strings for CTB errors
  13.         <11>     12/2/94    TMH        added errEWorldBadPassword
  14.         <10>    11/18/94    TMH        host force logout errors
  15.          <9>    10/20/94    TMH        added errCantOpenCTBConnection etc..
  16.          <8>    10/18/94    TMH        made some errors correctable
  17.          <7>    10/18/94    TMH        added errUnableToInitCTB
  18.          <6>    10/13/94    TMH        added errNoGatewayRecipients
  19.          <5>    10/11/94    TMH        added errCommConfigParamMissingOrCorrupt
  20.          <4>     10/7/94    TMH        added maxReport limiting
  21.          <3>     10/6/94    TMH        more errors
  22.          <2>     9/27/94    TMH        added errCorruptIncomingLetterFile moved restemplate to
  23.                                     ResTemplates.r
  24.          <1>     9/20/94    TMH        Abandon RoadsideRest embrace Mercury
  25.                   9/6/94    TMH        xxx put comment here xxx
  26.  
  27.     To Do:
  28. */
  29.  
  30.  
  31. #include "Types.r"
  32. #include "LogErrors.h"
  33.  
  34.  
  35. #define kMailMSAMErrorStringListID        128        //    From OCEMail.h
  36. #define kMailMSAMActionStringListID        129        //    From OCEMail.h
  37.  
  38.  
  39. resource 'STR#' (kMailMSAMErrorStringListID, "errors") {
  40.     {
  41.         
  42.     "An PMSAM error.  Undefined message.";                                //    1
  43.     "Why is error 0 being reported?";                                    //    2
  44.     "A system error (a negative number).  Undefined message.";            //    3
  45.     "Successfully sent a letter.";                                        //    4
  46.     "Unable to open incoming letter file.";                                //    5
  47.     "Whoa we are out of memory.";                                        //    6
  48.     "File in incoming folder is corrupt.  Not recognized as a letter.";    //    7
  49.     "not used";                                                            //    8 - no used
  50.     "Some setup information is missing or corrupt.";                    //  9 - errMSAMSetupInfoCorrupt
  51.     "An AOCE Authentication Error occurred.";                            //  10 - AOCE General Errors -1500 to -1539
  52.     "An AOCE General Error occurred.";                                    //  11 - AOCE Authentication Errors -1540 to -1609
  53.     "An AOCE AOCE Catalog Error     occurred.";                            //  12 - AOCE Authentication Errors -1540 to -1609
  54.     "An AOCE AOCE Mail Error  occurred.";                                //  13 - AOCE Mail Errors -15040 to -15089
  55.     "An AOCE AOCE Messaging Error  occurred.";                            //  14 - AOCE Messaging Errors    -15090 to -15169
  56.  
  57.     "A file system error occurred.";                                    //  15 - some kind file system error occurred
  58.     "A file was not found.";                                            //  16 - file not found
  59.     "To many files are open.";                                            //  17 - too many files open
  60.     "We've read off the end of a file. Maybe its corrupt.";                //  18 - eof error
  61.     "Unable to write file. The disk is full.";                            //  19 - disk is full error
  62.     "A file with the name alreay exists.";                                //  20 - duplicate file  name.
  63.  
  64.  
  65.     "EWorld connection parameters missing or corrupt.";                    //  21 - duplicate file  name.
  66.     "There are no recipients for the gateway in the letter.";            //    22 - errNoGatewayRecipients
  67.     
  68.     "Unable to initialize the Communications Toolbox.";                    //    23 - errUnableToInitCTB
  69.     
  70.     "The Thread Manager is not installed.";                                //    24 - errThreadMgrNotInstalled
  71.     "The EWorld gateway needs the Communications Toolbox.";                //    25 - errCommToolBoxNotInstalled
  72.     "System does not have AppleEvent manager.";                            //    26- errNeedAppleEventSupport
  73.     
  74.     "Unable to open communication toolbox connection.";                    //    27- errCantOpenCTBConnection
  75.  
  76.     "Host has logged you off. Reason unknown";                            //    28- 650  when exact string reason is not in kEWorldForceLogoffStrResID
  77.     "Your account is already signed on.";                                //    29- 651 maps to second string in kEWorldForceLogoffStrResID
  78.     "Your EWorld account name is invalid.";                                //    30- 652 maps to first string in kEWorldForceLogoffStrResID
  79.     "The EWorld host terminated connection because login"                //    31- 653 maps to first string in kEWorldForceLogoffStrResID
  80.     " timed out.";
  81.     "Your EWorld password is invalid.";                                    //    32- 654 maps to first string in kEWorldForceLogoffStrResID
  82.  
  83.  
  84.     "Unable to connect to EWorld.";                                    //    33    CTB Error cmRejected,cmFailed
  85.     "Unexpectedly lost connection to EWorld."                            //    34  CTB Error cmTimeout,cmNotOpen 
  86.     "Communications Toolbox Failure."                                    //    35  CTB Error other CTB errors (ever reported?)
  87.     
  88.     }
  89. };
  90.  
  91.  
  92. resource 'STR#' (kMailMSAMActionStringListID, "actions") {
  93.     {
  94.     
  95.     "Whoopee.";                                                                            //    1    
  96.     "ooops!?!?!";                                                                        //    2
  97.     "Buy memory.";                                                                        //    3
  98.     "Remove it from the incoming folder. If you can figure out which one it is.";        //    4
  99.     "not used";                                                                            //    5 - no used
  100.     "Delete the keychain. Ugh. And try again?";                                            //    6 - errUserKeyChainIsLocked
  101.     
  102.     "Check your communication setup values.";                                            //    7 - errCommConfigParamMissingOrCorrupt
  103.     
  104.     "If you are not using your account from another location call EWorld customer"        //    8 - account is busy
  105.     " relations at 1-800-775-4556.";
  106.  
  107.     "Make sure your EWorld account name is correct in the key chain setup";                //    9 - invalid account name
  108.     "Make sure your EWorld account password is correct in the key chain setup";            //    10 - invalid password
  109.     
  110.     "The communication link or host may be busy.  Try again.";                            //    11 lost connection
  111.     }
  112. };
  113.  
  114.  
  115.  
  116. //-------------------------------------------------------
  117. //    EWorld Forced Logoff Messages.
  118. //    We match these to error numbers : errEWorldForcedLogOff+index.
  119. //    To add a new message:
  120. //    1.    add the string here.
  121. //    2.    add it to the error table at the appropriate place. ie at 
  122. //        its match spot on the range errEWorldForcedLogOff+index.
  123. //        voila.
  124. //    3. Note the source code does not have to change.
  125. //
  126. //    Note: some of these strings are found in 'XS' packets
  127. //          others in 'fD' packets.
  128. //----------------------------------------------------
  129.  
  130.  
  131.  
  132. resource 'STR#' (kEWorldForceLogoffStrResID, "eworldforcedlogoff") {
  133.     {
  134.         "Your account is already signed on";            //    651
  135.         "Invalid account.";                                //    652        // bad user name
  136.         "Login timer expired";                            //    653
  137.         "Invalid password";                                //    654        // bad password
  138.     }
  139. };
  140.  
  141.  
  142.  
  143.  
  144. //-------------------------------------------------------------------------
  145. //    Log Error Table 
  146. //    
  147. //    CAUTION! Must track changes here in LogMessageTableEntry in LogErrors.h 
  148. //--------------------------------------------------------------------------
  149.  
  150. type 'etbl' {
  151.     wide array {
  152.         integer;                                                        // low err bounds, 
  153.         integer;                                                         // high err bounds
  154.         integer        correctable,error,warning,informational;            //    Error Type
  155.         integer        noModem = -2,miscError = -1, msamDefined = 0;        //    Error Code
  156.         integer;                                                        //    error index
  157.         integer        noAction =0;                                        //    error action
  158.         longint        alwaysReport=-1,dontReport=0, maxReports=32;        //    ...be nice don't fill the problem alert.
  159.         longint = 0;                                                    //     at run time we record the number of times here.
  160.     };
  161. };
  162.  
  163.  
  164. resource 'etbl' (kLogErrorMapTable,"LogErrorTable", purgeable) {
  165.  
  166.     {
  167.     700,32767,        informational,msamDefined,1,noAction,maxReports;        //    undefined pmsam error
  168.     
  169.     655,699,        informational,msamDefined,28,noAction,maxReports;        // unrecognized  host log off error messages. see EWorldForceLogoff string resource.
  170.     654,654,        informational,msamDefined,32,10,      maxReports;        // invalid EWorld password
  171.     653,653,        informational,msamDefined,31,noAction,maxReports;        // login timer expired.  (should never happen... it has)
  172.     652,652,        informational,msamDefined,30,9,          maxReports;        // user name or password invalid
  173.     651,651,        informational,msamDefined,29,8,       maxReports;        // account already busy.
  174.     650,650,        informational,msamDefined,28,noAction,maxReports;        // unrecognized  host log off error messages.
  175.     600,649,        informational,msamDefined,5,noAction,maxReports;        // P3 error range
  176.     
  177.     503,599,        informational,msamDefined,5,noAction,maxReports;        //  undefined pmsam error
  178.     502,502,        correctable,  msamDefined,26,7,         maxReports;        //    errNeedAppleEventSupport
  179.     501,501,        correctable,  msamDefined,25,7,         maxReports;        //    errCommToolBoxNotInstalled
  180.     500,500,        correctable,  msamDefined,24,7,         maxReports;        //    errThreadMgrNotInstalled
  181.     
  182.     403,499,        informational,msamDefined,5,noAction,maxReports;        //  undefined pmsam error
  183.     402,402,        correctable,  msamDefined,23,7,         maxReports;        //    errCantOpenCTBConnection
  184.     401,401,        correctable,  msamDefined,23,7,         maxReports;        //    errUnableToInitCTB
  185.     400,400,        correctable,  msamDefined,21,7,         maxReports;        //    errCommConfigParamMissingOrCorrupt
  186.     
  187.     303,399,        informational,msamDefined,5,noAction,maxReports;        //  undefined pmsam error
  188.     302,302,        informational,msamDefined,22,noAction,maxReports;        //    errNoGatewayRecipients
  189.     301,301,        correctable,  msamDefined,9,6,         maxReports;        //    errMSAMSetupInfoCorrupt
  190.     300,300,        informational,msamDefined,1,noAction,maxReports;        //    not used, undefined pmsam error
  191.     
  192.     201,299,        informational,msamDefined,1,noAction,maxReports;        //    undefined pmsam error
  193.     200,200,        informational,msamDefined,7,4,         maxReports;        //    file in incoming folder is corrupt.
  194.     101,199,        informational,msamDefined,5,noAction,maxReports;        //  undefined pmsam error
  195.     100,100,        informational,msamDefined,5,noAction,maxReports;        //    errUnableToOpenIncomingLetterFile
  196.     11,99,            informational,msamDefined,1,noAction,maxReports;        //    undefined pmsam error
  197.     10,10,            informational,msamDefined,4,1,         maxReports;        //    for testing, successfully sent a letter
  198.     
  199.     5,9,            informational,msamDefined,35,noAction,maxReports;        //    CTB Error
  200.     4,4,            informational,msamDefined,34,11,      maxReports;        //    CTB Error
  201.     3,3,            informational,msamDefined,34,11,      maxReports;        //    CTB Error
  202.     2,2,            informational,msamDefined,33,11,      maxReports;        //    CTB Error
  203.     1,1,            informational,msamDefined,33,11,      maxReports;        //    CTB Error
  204.  
  205.  
  206.     0,0,            informational,msamDefined,2,noAction,maxReports;        //    undefined, ???? error == 0
  207.     -26,-1,            informational,msamDefined,1,noAction,maxReports;        //    undefined pmsam error
  208.     
  209.     //    File system errors
  210.     
  211.     -33,-27,        informational,msamDefined,15,noAction,maxReports;        //    file system error
  212.     -34,-34,        informational,msamDefined,19,noAction,maxReports;        //    disk is full
  213.     -38,-35,        informational,msamDefined,15,noAction,maxReports;        //    file system error
  214.     -39,-39,        informational,msamDefined,18,noAction,maxReports;        //    read off the end of the file
  215.     -41,-40,        informational,msamDefined,15,noAction,maxReports;        //    file system error
  216.     -42,-42,        informational,msamDefined,17,noAction,maxReports;        //    too many files open.
  217.     -43,-43,        informational,msamDefined,16,noAction,maxReports;        //    a file not found.
  218.     -47,-44,        informational,msamDefined,15,noAction,maxReports;        //    file system error
  219.     -48,-48,        informational,msamDefined,20,noAction,maxReports;        //    duplicate file name.
  220.  
  221.     -107,-49,        informational,msamDefined,1,noAction,maxReports;        //    undefined system error
  222.     
  223.     -109,-108,        informational,msamDefined,6,3,         maxReports;        //    out of memory errors
  224.     
  225.     -1499,-110,        informational,msamDefined,1,noAction,maxReports;        //    undefined system error
  226.     
  227.     -1539,-1500,    informational,msamDefined,10,noAction,maxReports;        //    AOCE General Errors    -1500 to -1539
  228.     -1609,-1540,    informational,msamDefined,11,noAction,maxReports;        //    AOCE Authentication Errors -1540 to -1609
  229.     -1680,-1610,    informational,msamDefined,12,noAction,maxReports;        //    AOCE Catalog Errors    -1610 to -1680
  230.     -15039,-1679,    informational,msamDefined,1,noAction, maxReports;        //    undefined system error
  231.     -15089,-15040,    informational,msamDefined,13,noAction,maxReports;        //    AOCE Mail Error -15040 to -15089
  232.     -15169,-15090,    informational,msamDefined,14,noAction,maxReports;        //    AOCE Messaging Errors    -15090 to -15169
  233.     -32768,-15170,    informational,msamDefined,1,noAction, maxReports;        //    undefined system error
  234.     }
  235.     
  236. };
  237.  
  238.  
  239.