home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / idaerrno.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  6.6 KB  |  120 lines

  1. /********************************************************************************/
  2. /* File:   daxerrno.hpp                                                         */
  3. /* Class:  exception error numbers                                              */
  4. /*                                                                              */
  5. /*                                                                              */
  6. /********************************************************************************/
  7.  
  8. /***********************************************
  9.  
  10.     Licensed Materials - Property of IBM
  11.  
  12.     5622-880   5801-AAR
  13.  
  14.     (c) Copyright IBM Corp 1991, 1996.
  15.  
  16. ************************************************/
  17.  
  18. #ifndef _IDAERRNO_HPP_
  19. #define _IDAERRNO_HPP_
  20.  
  21. #ifndef DAX_ADD_READONLY              // SOM converts consts to #defines
  22.  
  23. // Exception used by generated code
  24.  
  25. const short DAX_ADD_READONLY   =101;  // Add used on a readonly table/view
  26. const short DAX_ADD_SQLERR     =102;  // SQL error occurred on add
  27. const short DAX_UPD_READONLY   =103;  // Update used on a readonly table/view
  28. const short DAX_UPD_SQLERR     =104;  // SQL error occurred on update
  29. const short DAX_DEL_READONLY   =105;  // Delete used ona readonly table/view
  30. const short DAX_DEL_SQLERR     =106;  // SQL error occurred on delete
  31. const short DAX_RET_SQLERR     =107;  // SQL error occurred on retrieve
  32. const short DAX_REF_SQLERR     =108;  // SQL error occurred on refresh
  33. const short DAX_SEL_SQLERR     =109;  // SQL error occurred on select
  34. const short DAX_ADD_NONNULL    =110;  // Add with non-nullable column not mapped
  35. const short DAX_NUL_NONNULL    =111;  // Cannot SetToNull non-nullable column
  36. const short DAX_DFT_READONLY   =112;  // Cannot SetReadOnly to false on a readonly table/view
  37. const short DAX_SYS_LOCK       =113;  // Not used, but keep for backwards compatibility
  38. const short DAX_ADD_NULL_DATAID=114;  // Add with a null DataId
  39. const short DAX_UPD_NULL_DATAID=115;  // Update with a null DataId
  40. const short DAX_RET_NULL_DATAID=116;  // Retrieve with a null DataId
  41. const short DAX_DEL_NULL_DATAID=117;  // Delete with a null DataId
  42. const short DAX_ATTR_INVLEN    =118;  // attribute set to an invalid length
  43. const short DAX_ATTR_INVDATA   =119;  // attribute contains invalid data
  44. const short DAX_RET_NORETRIEVE =120;  // Retrieve not allowed for this object
  45. const short DAX_UPD_MULTROWS   =121;  // Multiple rows affected by update
  46. const short DAX_DEL_MULTROWS   =122;  // Multiple rows affected by delete
  47. const short DAX_OUT_OF_MEMORY  =123;  // Out of memory error
  48.  
  49. // Error ids used in the class library
  50. const short DAX_MSG_MAX_CONNECTIONS_REACHED            =1209;
  51.         // Maximum number of connections allowed has been reached
  52. const short DAX_MSG_NO_CONNECT_TRANSACT_ACTIVE         =1210;
  53.         // Cannot connect while transaction is active
  54. const short DAX_MSG_MAX_CONNECTIONS_TO_DB_REACHED      =1211;
  55.         // Maximum number of connections to a database has been reached
  56. const short DAX_MSG_CONNECTION_IN_USE                  =1212;
  57.         // The specified connection is already in use
  58. const short DAX_MSG_NO_DISCONNECT_CONNECTION_NOT_FOUND =1213;
  59.         // Could not disconnect because connection is not found
  60. const short DAX_MSG_COMMIT_ERROR                       =1216;
  61.         // An error occurred during the commit
  62. const short DAX_MSG_ROLLBACK_ERROR                     =1217;
  63.         // An error occurred during the rollback
  64. const short DAX_MSG_CONNECT_ERROR                      =1219;
  65.         // An error occurred during the connect
  66. const short DAX_MSG_DISCONNECT_ERROR                   =1221;
  67.         // An error occurred during the disconnect
  68. const short DAX_MSG_CONNECT_NOT_OPEN                   =1222;
  69.         // The specified connection is not open
  70. const short DAX_MSG_LOGON_ERROR                        =1223;
  71.         // An error occurred during a logon attempt
  72. const short DAX_MSG_LOGOFF_ERROR                       =1224;
  73.         // An error occurred during a logoff attempt
  74. const short DAX_MSG_USERID_NOT_SPECIFIED               =1225;
  75.         // UserId was not specified.  The logon could not be completed
  76. const short DAX_MSG_PASSWORD_NOT_SPECIFIED             =1226;
  77.         // Password was not specified.  The logon could not be completed
  78. const short DAX_MSG_INCORRECT_USERID_OR_PASSWORD       =1227;
  79.         // Userid or password provided was incorrect.  The logon could not be completed
  80. const short DAX_MSG_LOGON_IN_PROGRESS                  =1228;
  81.         // A logon is already in progress
  82. const short DAX_MSG_INVALID_REMOTE_TYPE                =1229;
  83.         // Remote type specified to UPM is not valid
  84. const short DAX_MSG_EXECUTE_IMMEDIATE_ERROR            =1243;
  85.         // DB2 embedded SQL excute immediate error
  86. const short DAX_MSG_ONLY_ONE_CONNECTION_ALLOWED        =1244;
  87.         // Only one active embedded SQL connection per application is permitted
  88. const short DAX_MSG_OBJECT_NOT_FOUND_OR_NOT_INSERTED   =1248;
  89.         // An object could not be found or could not be inserted
  90. const short DAX_MSG_OBJECT_NOT_UNIQUE                  =1249;
  91.         // An update or a del action has affected more than one row of the table
  92. const short DAX_MSG_ERROR_IN_SQLERROR                  =1250;
  93.         // An SQL error occurred while obtaining the SQL error information
  94. const short DAX_MSG_ADD_NOT_IMPLEMENTED                =1251;
  95.         // The add method is not implemented for this class
  96. const short DAX_MSG_UPDATE_NOT_IMPLEMENTED             =1252;
  97.         // The update method is not implemented for this class
  98. const short DAX_MSG_DEL_NOT_IMPLEMENTED                =1253;
  99.         // The del method is not implemented for this class
  100. const short DAX_MSG_RETRIEVE_NOT_IMPLEMENTED           =1254;
  101.         // The retrieve method is not implemented for this class
  102. const short DAX_MSG_DEFAULT_READONLY                   =1255;
  103.         // The read-only attribute for a class that is read-only by default cannot be disabled
  104. const short DAX_MSG_RETRIEVEALL_NOT_IMPLEMENTED        =1256;
  105.         // The retrieveAll method is not implmented for this class
  106. const short DAX_MSG_SQLERROR                           =1260;
  107.         // An SQL error occured
  108. const short DAX_MSG_SELECT_NOT_IMPLEMENTED             =1261;
  109.         // The select method is not implemented for this class
  110. const short DAX_MSG_DATASTORE_CONNECTION_NOT_SUPPLIED  =1262;
  111.         // The application has not provided a datastore connection for the
  112.         // object, nor has it specified a default connection for objects of
  113.         // the class
  114. const short DAX_MSG_LOCK_ERROR                         =1263;
  115.         // An operating system error occurred while in a locking call
  116.  
  117. #endif
  118.  
  119. #endif
  120.