home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / include / exception_codes.h next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  84 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. //////////////////////////////////////////////////////////////////////////
  20. //
  21. //    exception_codes.h
  22. //
  23. // 
  24. //
  25. //////////////////////////////////////////////////////////////////////////
  26. //
  27. //    This file contains several enums to be used as codes for exceptions.
  28. //    This enums should be always synched with the resource file containing 
  29. //    exception strings (i.e. for every enum there should be a corresponding
  30. //    and appropiate string in the resource file ). The file containing the 
  31. //     exception string resources is "exception_str.r".
  32. //
  33. //    For easier usage every enum should be followed by a comment.
  34. //
  35. //////////////////////////////////////////////////////////////////////////
  36.  
  37. //////////////////////////////////////////////////////////////////////////
  38. // mail/news codes
  39.  
  40. #define    genericExStringsID  800 // resource containing the generic exception strings
  41.  
  42. enum GenericCode
  43. {
  44.     eDeafult = 1,                // generic default exception
  45.     eUIResourceError = 2        // this error is thrown when either a UI resource is missing
  46.                                 // or is being casted to the wrong type. The user should 
  47.                                 // never see this.
  48.  
  49.  
  50.  
  51. };
  52.  
  53. //////////////////////////////////////////////////////////////////////////
  54. // browser codes
  55.  
  56. #define    browserExStringsID     802 // resource containing the mail exception strings
  57.  
  58. enum BrowserCode
  59. {
  60.     eBowserDeafult = 1            // default exception for the browser
  61.  
  62.  
  63.  
  64.  
  65.  
  66. };
  67.  
  68. //////////////////////////////////////////////////////////////////////////
  69. // mail/news codes
  70.  
  71. #define mailExStringsID        801 // resource containing the browser exception strings
  72.  
  73. enum MailCode
  74. {
  75.     eMailDeafult = 1,            // default exception for news/mail
  76.     eMissingPreference = 2,        // missing preference
  77.     eMoveMessageError = 1        // BE error while moving a message. Currently
  78.                                 // I am redefining as a default message. This might change
  79.  
  80.  
  81.  
  82.  
  83. };
  84.