home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / ERRORDEF.IDL < prev    next >
Text File  |  1995-12-13  |  14KB  |  313 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15. #ifndef _ERRORDEF_
  16. #define _ERRORDEF_
  17.  
  18. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  19. #pragma somemittypes on
  20. #endif
  21.  
  22. const long kODErrAssertionFailed            =  130;    // Internal error
  23.  
  24. const long kODErrInvalidParameter            =  129;    // Invalid fn param
  25.  
  26. const long kODErrInvalidFrame                =  9;
  27. const long kODErrInvalidFacet                =  101;
  28.  
  29. const long kODErrInvalidValue                =  23;
  30.  
  31. #ifdef _PLATFORM_OS2_
  32. //const long kODMaxError              =  139;
  33. const long kODMaxError              =  257;     // ced //pfe has to raise this higher
  34. #else
  35. const long kODMaxError              =  166;
  36. #endif
  37.  
  38. const long kODNoError               =   0;
  39. const long kODErrUndefined                =   1;
  40.  
  41. const long kODErrIllegalNullInput        =  132;
  42. const long kODErrObjectNotInitialized      =   133;
  43. const long kODErrOutOfMemory                =   61;
  44. const long kODErrNotImplemented              =   87;
  45. const long kODErrReadErr                  =   104;
  46. const long kODErrWriteErr                 =  105;
  47.  
  48. const long kODErrSubClassResponsibility     =   131;
  49.  
  50. #ifdef _PLATFORM_OS2_
  51. const long kODErrPMError                 = 137;   // A PM or GPI error occured
  52. const long kODErrNoWindow                = 230;
  53. #endif
  54.  
  55. const long kODErrSOMException          =  156;
  56.  
  57. const long kODErrUnsupportedExtension           =  22;
  58. const long kODErrInvalidExtension               =  241;
  59. const long kODErrUnknownExtension             =  242;
  60. const long kODErrInvalidObjectType        =  138;
  61. const long kODErrInvalidPersistentObjectID    =  139;
  62. const long kODErrInvalidPersistentObject    =  162;
  63.  
  64. const long kODErrRefCountNotEqualOne            =       160; // [120604]
  65. const long kODErrZeroRefCount                   =       57;
  66.  
  67. const long kODErrInvalidRefCount            =   52;
  68.  
  69. const long kODErrIteratorOutOfSync           =   88;
  70. const long kODErrIteratorNotInitialized         =   243;
  71.  
  72. const long kODErrCannotEmbed                =  7;
  73. const long kODErrDoesNotUndo                =  166;
  74. const long kODErrNoPromises                =  167;
  75. const long kODErrDoesNotDrop                =  168;
  76. const long kODErrDoesNotLink                =  169;
  77. const long kODPartNotWrapper                =  234;
  78. const long kODErrCannotUndo                =  240;
  79.  
  80. const long kODErrCouldNotBindForeignDocument    =       159; // [120604]
  81.  
  82. const long kODErrCannotFindSystemEditorsFolder    =   238;
  83. const long kODErrCannotFindOpenDocLibrariesFolder   =   237;
  84.  
  85. const long kODErrKeyAlreadyExists            =   28;
  86.  
  87. const long kODErrWrongNameSpaceType         =   29;
  88.  
  89. const long kODErrPartInUse              =       30; // [120604}
  90.  
  91. const long kODErrAllWritableVolumesAreFull      =       149;
  92. const long kODErrSystemVolumeIsFull                     =       158;
  93. const long kODErrVolumesIsFull           =   150;
  94. const long kODErrDirectoryNotHaveWriteAccess    =   151;
  95. const long kODErrCannotSaveACopyOntoCurrentDoc  =   152;
  96. const long kODErrCannotSaveACopyOntoBusyDoc    =   153;
  97.  
  98. const long kODErrCannotFindShellPlugInsFolder = 239;
  99.  
  100. const long kODErrInvalidGraphicsSystem        =   59;
  101.  
  102. const long kODErrNoShapeGeometry            =  112; // Shape has no polygon representation
  103.  
  104. const long kODErrTransformErr                =  128; // Illegal op on xform
  105.  
  106. const long kODErrInvalidCanvas              =  99;
  107.  
  108. const long kODErrUnsupportedFramePositionCode   =  102;
  109. const long kODErrIllegalNullFacetInput      =  244;
  110. const long kODErrIllegalNullFrameInput      =  245;
  111.  
  112. const long kODErrIllegalNullPartInput            =  8;
  113. const long kODErrIllegalNullTransformInput      =  117;
  114. const long kODErrIllegalNullStorageSystemInput  =  140;
  115. const long kODErrIllegalNullTokenInput      =  232;
  116. const long kODErrIllegalNullShapeInput      =  233;
  117. const long kODErrIllegalNullStorageUnitInput  =  235;
  118. const long kODErrNotRootFrame          =  255;
  119. const long kODErrIllegalRecursiveEmbedding    =  256;
  120.  
  121. const long kODErrMemoryProblem              =  127;    // bad heap or damaged object
  122.  
  123. const long kODErrPartHasNoSemanticInterface      =  134;
  124.  
  125. const long kODErrUnsupportedPosCode            =  25;
  126. const long kODErrInvalidPermissions          =  35;
  127.  
  128. const long kODErrInvalidName                =  18;
  129.  
  130. const long kODErrInvalidContainer            =   3;
  131.  
  132. const long kODErrInvalidDocument              =   4;
  133.  
  134. const long kODErrInvalidDraft                =   5;
  135.  
  136. const long kODErrInvalidStorageUnit         =  6;
  137.  
  138. const long kODErrNoDocumentProperties                   = 164;
  139.  
  140. const long kODErrNoValueAtThatIndex          =  26;
  141. const long kODErrCannotAddProperty          =  32;
  142. const long kODErrCannotAddType              =  33; // $$$$$ kODErrCannotAddValueType may be better
  143.  
  144. const long kODErrUnfocusedStorageUnit          =  34;
  145. const long kODErrIllegalNullPropertyInput      =  47;
  146. const long kODErrIllegalNullSUCursorInput      =  48;
  147. const long kODErrInvalidStorageUnitRef         =  73;
  148. const long kODErrStorageUnitLocked             =  75;
  149. const long kODErrInvalidStorageUnitKey         =  76;
  150. const long kODErrStorageUnitNotLocked          =  77;
  151. const long kODErrInvalidDraftKey               =  161;
  152. const long kODErrCloningInProgress             =  163;
  153. const long kODErrValueIndexOutOfRange          =  246;                 //132008
  154.  
  155. const long kODErrInvalidType                =  16;
  156.  
  157. const long kODErrInvalidProperty            =  24;
  158.  
  159. const long kODErrNoDraftProperties          =   51;
  160. const long kODErrCannotCreateFrame          =  53;
  161. const long kODErrCannotAcquireFrame             =  68;
  162. const long kODErrCannotCreatePart            =  69;
  163. const long kODErrCannotAcquirePart              =  70;
  164. const long kODErrCannotCreateLink            =  96;
  165. const long kODErrCannotAcquireLink              =  115;
  166.  
  167. const long kODErrInvalidID                =  20;
  168.  
  169. const long kODErrInconsistentCloneKind          =  126;
  170. const long kODErrInvalidCloneKind            =  231;      // dcp #120118 changed 137 to 157
  171. const long kODErrInvalidDestinationDraft                =       165;
  172. const long kODErrMoveIntoSelf          =  247;
  173. const long kODErrNullDestinationFrame      =  251;
  174.  
  175. const long kODErrInvalidBelowDraft          =  38;
  176. const long kODErrDraftNotExists              =  39;
  177. const long kODErrCannotCollapseDrafts          =  41;
  178. const long kODErrNonEmptyDraft             =  42;
  179. const long kODErrNoPreviousDraft            =  46;
  180. const long kODErrOutstandingDraft            =  56;
  181. const long kODErrInvalidDraftID              =  62;
  182. const long kODErrCannotChangePermissions      =  65;
  183.  
  184. const long kODErrContainerExists            =  40;
  185. const long kODErrContainerNotExists          =  44;
  186.  
  187. const long kODErrCannotGetExternalLink        =  95;
  188. const long kODErrNoLinkSpecValue            =  97;
  189. const long kODErrUnknownLinkSpecVersion        =  98;
  190. const long kODErrCorruptLinkSpecValue          =  100;
  191.  
  192. const long kODErrNotExportedLink            =  113;
  193. const long kODErrBrokenLink                =  135;
  194. const long kODErrCannotRevealLink        =  142;
  195. const long kODErrCorruptLink          =  143;
  196. const long kODErrLinkAlreadyExported      =  144;
  197. const long kODErrNoLinkContent          =  254;
  198.  
  199. const long kODErrNotImportedLink            =  114;
  200.  
  201. const long kODErrInvalidLinkKey              =  118;
  202. const long kODErrBrokenLinkSource              =  136;
  203. const long kODErrCorruptLinkSource        =  145;
  204. const long kODErrCannotFindLinkSourceEdition  =  146;  // Cannot locate source of cross document link because edition file does not exist
  205. const long kODErrCannotFindLinkSource      =  147;  // Cannot locate source of cross document link
  206. const long kODErrAlreadyImportedLink      =  148;  // Cannot create link due to Internal error
  207. const long kODErrUnknownUpdateID        =  253;
  208.  
  209. const long kODErrNoEditionManager              =  141;
  210. const long kODErrDocNotSaved                =  119;
  211.  
  212. const long kODErrNullFacetInput          =  157;
  213. const long kODErrNullLinkInfoInput        =  248;
  214. const long kODErrNullLinkInfoResultInput    =  249;
  215. const long kODErrNullPasteAsResultInput      =  250;
  216.  
  217. const long kODErrNoDragManager              =  106;
  218. const long kODErrNoDragSystemStorage          =  107;
  219. const long kODErrDragItemNotFound            =  108;
  220. const long kODErrCannotAllocateDragItem        =  109;
  221. const long kODErrUnknownDragImageType          =  110;
  222. const long kODErrDragTrackingException        =  111;
  223.  
  224. const long kODErrIllegalClipboardCloneKind   =  257; // [143407]  //pfe ..257
  225.  
  226. const long kODErrCannotCreateContainer    =  84;
  227. const long kODErrCannotOpenContainer      =  85;
  228.  
  229. const long kODErrFocusAlreadyRegistered        =  89;
  230. const long kODErrFocusNotRegistered          =  90;
  231. #ifdef _PLATFORM_OS2_
  232. const long kODErrFocusIsNonExclusive         =  92;  // [107837]
  233. #endif
  234.  
  235. const long kODErrIllegalNullDispatchModuleInput  =  15;
  236. #ifdef _PLATFORM_OS2_  // ced [123845] - Moved these two error codes from disptabl.h
  237. // aml [125850] - Renamed next two error codes as per class reference
  238. //const long kODErrDispatchModuleAlreadyExists = 171;
  239. //const long kODErrDispatchModuleNotInitialized = 173; // [107613]
  240. const long kODErrExistingDispatchModule = 171;
  241. const long kODErrInvalidDispatchModule = 236;   //conflict!!! [pfe] 11/19
  242. const long kODErrDispatcherNotInitialized = 172;
  243.  
  244. #endif
  245.  
  246. const long kODErrCannotMarkAction            =  120;
  247. const long kODErrEmptyStack                =  121;
  248. const long kODErrNoBeginAction              =  122;
  249. const long kODErrCannotAddAction            =  123;
  250.  
  251. const long kODErrCannotCreateWindow          =  54;
  252.  
  253. const long kODErrCantLoadSOMClass        =  252;  // Thrown by ODNewObject
  254.  
  255. const long kODErrFileClosed           = 154;
  256. const long kODErrFileOpened           = 155;
  257. #ifdef _PLATFORM_OS2_
  258. const long kODErrOpenFile             = 170;   // Could not open file [124807]
  259. #endif
  260.  
  261. const long kODErrSemaphoreError       =  500;
  262. const long kODErrSemaphoreTimeout     =  501;
  263. const long kODErrSemaphoreOwnerDied   =  502;
  264. const long kODErrSemaphoreNotOwner    =  503;
  265.  
  266.  
  267. const long kODError                          = 173;
  268. const long kODErrorMaxLinkError              = kODError+50;    //[up to 223] pfe 11/19
  269. const long kODErrLinkSourceIsEmpty           = kODError+1;  //174
  270. const long kODErrLinkSourceAlreadyInited     = kODError+2;  //175
  271. const long kODErrLinkSourceConnected         = kODError+3;  //176
  272. const long kODErrInvalidTargetID             = kODError+4;  //177
  273. const long kODErrRequestMutexTimeOut         = kODError+5;  //178
  274. const long kODErrRequestMutexInterrupt       = kODError+6;  //179
  275. const long kODErrRequestMutexInvalidHandle   = kODError+7;  //180
  276. const long kODErrRequestMutexTooManyRequests = kODError+8;  //181
  277. const long kODErrRequestMutexOwnerDied       = kODError+9;  //182
  278. const long kODErrReleaseMutexInvalidHandle   = kODError+10; //183
  279. const long kODErrReleaseMutexNotOwner        = kODError+11; //184
  280. const long kODErrDocNotRegistered            = kODError+12; //185
  281. const long kODErrDocNotOpened                = kODError+13; //186
  282. const long kODErrLinkNotRegistered           = kODError+14; //187
  283. const long kODErrLinkNotOpened               = kODError+15; //188
  284. const long kODErrInvalidDocPathName          = kODError+16; //189
  285. const long kODErrDocAlreadyOpened            = kODError+17; //190
  286. const long kODErrInvalidDocID                = kODError+18; //191
  287. const long kODErrInvalidLinkID               = kODError+19; //192
  288. const long kODErrInvalidAvlSvr               = kODError+20; //193
  289. const long kODErrInvalidLinkSource           = kODError+21; //194
  290. const long kODErrInvalidAuxState             = kODError+22; //195
  291. const long kODErrLinkIDNotInDoc              = kODError+23; //196
  292. const long kODErrInvalidShell                = kODError+24; //197
  293. const long kODErrLinkAlreadyOpened           = kODError+25; //198
  294. const long kODErrWaitingUnlock               = kODError+26; //199
  295. const long kODErrDocOpenedFailed             = kODError+27; //200
  296. const long kODErrLinkOpenedFailed            = kODError+28; //201
  297. const long kODErrInvalidLink                 = kODError+29; //202
  298. const long kODErrNoLinkSource                = kODError+30; //203
  299. const long kODErrSourceDocRemote             = kODError+31; //204
  300. const long kODErrSourceDocNotOpen            = kODError+32; //205
  301.  
  302. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  303. #pragma somemittypes off
  304. #endif
  305.  
  306. module OpenDoc_Errors
  307. {
  308.   const string OpenDoc_Errors_Version = "1.0.";
  309. };
  310.  
  311. #endif // _ERRORDEF_
  312.  
  313.