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