1 // Copyright (c) 2003-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __XMLFRAMEWORKERRORS_H__
17 #define __XMLFRAMEWORKERRORS_H__
22 This file contains allocated error codes and
23 generic Panic error messages and the Panic function.
24 The XmlFramework has been allocated error codes in the range: -17550 to -17599
39 const TInt KErrXmlStringDictionaryPluginNotFound = -17550;
40 const TInt KErrXmlParserPluginNotFound = -17551;
41 const TInt KErrXmlGeneratorPluginNotFound = -17552;
42 const TInt KErrXmlPluginNotFound = -17553;
46 const TInt KErrXmlBadCharacterConversion = -17554;
47 const TInt KErrXmlUnsupportedCharacterSet = -17555;
48 const TInt KErrXmlUnavailableCharacterSet = -17556;
52 const TInt KErrXmlUnsupportedElement = -17557;
53 const TInt KErrXmlUnsupportedAttribute = -17558;
54 const TInt KErrXmlUnsupportedAttributeValue = -17559;
55 const TInt KErrXmlMissingStringDictionary = -17560;
59 const TInt KErrXmlUnsupportedDocumentVersion = -17561;
60 const TInt KErrXmlDocumentCorrupt = -17562;
61 const TInt KErrXmlStringPoolTableNotFound = -17563;
62 const TInt KErrXmlBadIndex = -17564;
63 const TInt KErrXmlUnsupportedExtInterface = -17566;
65 // Custom resolver related
67 Indicates the parser query is matched to more than one parser.
68 This error can be returned only if the request is to leave in such a case - LeaveOnMany flag is set.
70 const TInt KErrXmlMoreThanOneParserMatched = -17567;
72 const TInt KErrXmlFirst = -17550;
73 const TInt KErrXmlLast = -17599;
78 Indicates various Panic error conditions within the framework.
82 enum TXmlFrameworkPanic
85 Indicates that a leave code other than that expected was received.
87 EXmlFrameworkPanicUnexpectedLeaveCode = 0,
90 Indicates that a state other than that expected was reached.
92 EXmlFrameworkPanicUnexpectedState = 1,
95 Indicates that logic other than that expected was reached.
97 EXmlFrameworkPanicUnexpectedLogic = 2,
100 Indicates that internal document positioning has gone beyond EOF and has failed.
102 EXmlFrameworkPanicPositionMisallignment = 3,
105 Indicates that a reference count has reached a negative value.
107 EXmlFrameworkPanicReferenceCountNegative = 4,
110 Pointer is null, cannot dereference.
112 EXmlFrameworkPanicNullPointer = 5,
117 This method panics the thread
119 @param aError The reason for the panic
122 void Panic(TXmlFrameworkPanic aError);
128 #endif // __XMLFRAMEWORKERRORS_H__