| XMP Toolkit SDK 6.0.0

XMPCoreErrorCodes.h
Go to the documentation of this file.
1 #ifndef XMPCoreErrorCodes_h__
2 #define XMPCoreErrorCodes_h__ 1
3
4 // =================================================================================================
5 // Copyright Adobe
6 // Copyright 2015 Adobe
7 // All Rights Reserved
8 //
9 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
10 // of the Adobe license agreement accompanying it. If you have received this file from a source other
11 // than Adobe, then your use, modification, or distribution of it requires the prior written permission
12 // of Adobe.
13 // =================================================================================================
14
15 #include "XMPCore/XMPCoreDefines.h"
16 #include "XMPCommon/XMPCommonErrorCodes.h"
17
18 namespace AdobeXMPCore {
19
20 typedef enum {
22 kDMECNone = 0,
23
25 kDMECNameSpacePrefixMapEntryMissing = 1,
26
28 kDMECDifferentNodeTypePresent = 2,
29
31 kDMECNodeAlreadyAChild = 3,
32
34 kDMECNodeAlreadyExists = 4,
35
37 kDMECNoSuchNodeExists = 5,
38
40 kDMECArrayItemTypeDifferent = 6,
41
43 kDMECInvalidPathSegment = 7,
44
46 kDMECBadSchema = 101,
47
49 kDMECBadXPath = 102,
50
52 kDMECBadOptions = 103,
53
55 kDMECBadIterPosition = 104,
56
58 kDMECBadUnicode = 105,
59
61 kDMECValidationError = 106,
62
64 kDMECEmptyIterator = 107,
65
67 kDMECMaxValue = kMaxEnumValue
68 } eDataModelErrorCode;
69
73 typedef enum {
75 kPECNone = 0,
76
78 kPECBadXML = 1,
79
81 kPECBadRDF = 2,
82
84 kPECBadXMP = 3,
85
87 kPECInvalidContextNode = 4,
88
90 kPECContextNodeIsNonComposite = 5,
91
93 kPECContextNodeParentIsNonArray = 6,
94
96 kPECMaxValue = kMaxEnumValue
97 } eParserErrorCode;
98
102 typedef enum {
104 kSECNone = 0,
105
107 kSECSizeExceed = 1,
108
110 kSECUnRegisteredNameSpace = 2,
111
113 kSECMaxValue = kMaxEnumValue
114
115 } eSerializerErrorCode;
116 }
117
118 #endif // XMPCoreErrorCodes_h__
AdobeXMPCore::kDMECBadSchema
@ kDMECBadSchema
Indicates Bad schema parameter.
Definition: XMPCoreErrorCodes.h:46
AdobeXMPCore::kDMECBadXPath
@ kDMECBadXPath
Indicates Bad XPath parameter.
Definition: XMPCoreErrorCodes.h:49
AdobeXMPCore::kPECMaxValue
@ kPECMaxValue
Maximum value this enum can hold, should be treated as invalid value.
Definition: XMPCoreErrorCodes.h:96
AdobeXMPCore::kPECBadXML
@ kPECBadXML
Indicates XML parsing error.
Definition: XMPCoreErrorCodes.h:78
AdobeXMPCore::kDMECMaxValue
@ kDMECMaxValue
Maximum value this enum can hold, should be treated as invalid value.
Definition: XMPCoreErrorCodes.h:67
AdobeXMPCore::kDMECBadIterPosition
@ kDMECBadIterPosition
Indicates Bad iteration position.
Definition: XMPCoreErrorCodes.h:55
AdobeXMPCore::kDMECInvalidPathSegment
@ kDMECInvalidPathSegment
Indicates invalid path segment inside a path.
Definition: XMPCoreErrorCodes.h:43
AdobeXMPCore::kDMECNameSpacePrefixMapEntryMissing
@ kDMECNameSpacePrefixMapEntryMissing
Indicates that IXMPNameSpacePrefixMap has an entry missing.
Definition: XMPCoreErrorCodes.h:25
AdobeXMPCore::kDMECArrayItemTypeDifferent
@ kDMECArrayItemTypeDifferent
Indicates current array element type is not same as that of other child items.
Definition: XMPCoreErrorCodes.h:40
AdobeXMPCore::kSECSizeExceed
@ kSECSizeExceed
Indicates serialization failed to achieve size requirement.
Definition: XMPCoreErrorCodes.h:107
AdobeXMPCore::eSerializerErrorCode
eSerializerErrorCode
Indicates various errors encountered during serialization.
Definition: XMPCoreErrorCodes.h:102
AdobeXMPCommon::kMaxEnumValue
static const uint32 kMaxEnumValue(Max_XMP_Uns32)
AdobeXMPCore::kSECNone
@ kSECNone
Indicates no error.
Definition: XMPCoreErrorCodes.h:104
XMPCoreDefines.h
AdobeXMPCore
Definition: IArrayNode.h:18
AdobeXMPCore::kDMECNodeAlreadyExists
@ kDMECNodeAlreadyExists
Indicates a node with the same qualified name or index already exists.
Definition: XMPCoreErrorCodes.h:34
AdobeXMPCore::kDMECNodeAlreadyAChild
@ kDMECNodeAlreadyAChild
Indicates that node is already a child of another parent.
Definition: XMPCoreErrorCodes.h:31
AdobeXMPCore::kDMECNone
@ kDMECNone
Indicates no error.
Definition: XMPCoreErrorCodes.h:22
AdobeXMPCore::kPECNone
@ kPECNone
Indicates no error.
Definition: XMPCoreErrorCodes.h:75
AdobeXMPCore::kDMECEmptyIterator
@ kDMECEmptyIterator
Indicates Empty iterator.
Definition: XMPCoreErrorCodes.h:64
AdobeXMPCore::kPECInvalidContextNode
@ kPECInvalidContextNode
Context Node is invalid.
Definition: XMPCoreErrorCodes.h:87
AdobeXMPCore::eParserErrorCode
eParserErrorCode
Indicates various errors encountered during parsing.
Definition: XMPCoreErrorCodes.h:73
AdobeXMPCore::kDMECNoSuchNodeExists
@ kDMECNoSuchNodeExists
Indicates no such node exists.
Definition: XMPCoreErrorCodes.h:37
AdobeXMPCore::kPECContextNodeParentIsNonArray
@ kPECContextNodeParentIsNonArray
Parent of Context Node is not an array node.
Definition: XMPCoreErrorCodes.h:93
AdobeXMPCore::kPECContextNodeIsNonComposite
@ kPECContextNodeIsNonComposite
Context Node is not a composite node.
Definition: XMPCoreErrorCodes.h:90
AdobeXMPCore::kSECMaxValue
@ kSECMaxValue
Maximum value this enum can hold, should be treated as invalid value.
Definition: XMPCoreErrorCodes.h:113
XMPCommonErrorCodes.h
AdobeXMPCore::kDMECValidationError
@ kDMECValidationError
Indicates XMP format error.
Definition: XMPCoreErrorCodes.h:61
AdobeXMPCore::kSECUnRegisteredNameSpace
@ kSECUnRegisteredNameSpace
Indicates un registered namespace encountered during serialization.
Definition: XMPCoreErrorCodes.h:110
AdobeXMPCore::kPECBadXMP
@ kPECBadXMP
XMP format error.
Definition: XMPCoreErrorCodes.h:84
AdobeXMPCore::kDMECDifferentNodeTypePresent
@ kDMECDifferentNodeTypePresent
Indicates that a different type of node is present than one user is expecting.
Definition: XMPCoreErrorCodes.h:28
AdobeXMPCore::kPECBadRDF
@ kPECBadRDF
RDF format error.
Definition: XMPCoreErrorCodes.h:81
AdobeXMPCore::eDataModelErrorCode
eDataModelErrorCode
Definition: XMPCoreErrorCodes.h:20
AdobeXMPCore::kDMECBadUnicode
@ kDMECBadUnicode
Indicates Unicode error.
Definition: XMPCoreErrorCodes.h:58
AdobeXMPCore::kDMECBadOptions
@ kDMECBadOptions
Indicates Bad options parameter.
Definition: XMPCoreErrorCodes.h:52