|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 @released |
|
20 */ |
|
21 |
|
22 #ifndef __ERRORCODES_H__ |
|
23 #define __ERRORCODES_H__ |
|
24 |
|
25 typedef enum TWapEngineStatus |
|
26 { |
|
27 EWapErrGeneral = -10000, |
|
28 EWapErrDocumentCorrupted = -10002, |
|
29 EWapErrUnknownDocument = -10024, |
|
30 EWapErrDTDUnavailable = -10022, // Document cannot be validated as DTD is not available |
|
31 EWapErrPluginNotFound = -10018, // couldn't find the requested plugin |
|
32 |
|
33 // Validator |
|
34 #define XmlValidatorErrorBase -13100 |
|
35 EWapErrXmlLibIllegalTagName = XmlValidatorErrorBase, |
|
36 EWapErrXmlLibMissingRequiredAttribute = XmlValidatorErrorBase - 2, |
|
37 EWapErrXmlLibMissingDocument = XmlValidatorErrorBase - 4, |
|
38 EWapErrXmlLibInvalidDocumentStructure = XmlValidatorErrorBase - 6, |
|
39 EWapErrXmlLibIllegalAttributeValue = XmlValidatorErrorBase - 7, |
|
40 |
|
41 // Parser |
|
42 #define XmlParserErrorBase -13000 |
|
43 EWapErrXmlLibInvalidAttributeDeclaration = XmlParserErrorBase - 1, |
|
44 EWapErrXmlLibEndTagMismatch = XmlParserErrorBase - 2, |
|
45 EWapErrXmlLibInvalidCharacterReference = XmlParserErrorBase - 3, |
|
46 EWapErrXmlLibUnknownEntityReference = XmlParserErrorBase - 4, |
|
47 EWapErrXmlLibMissingDocumentRootNode = XmlParserErrorBase - 6, |
|
48 |
|
49 #define XmlParserErrorBase -13000 |
|
50 EWapErrXmlLibMissingCDATASectionEndTag = XmlParserErrorBase, |
|
51 |
|
52 // XmlLib |
|
53 #define XmlLibErrorBase -13200 |
|
54 EWapErrXmlLibInvalidDocument = XmlLibErrorBase, |
|
55 |
|
56 }TWapEngineStatus; |
|
57 |
|
58 |
|
59 #endif |