williamr@2: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __XMLFRAMEWORKERRORS_H__ williamr@2: #define __XMLFRAMEWORKERRORS_H__ williamr@2: williamr@2: /** williamr@2: @file williamr@2: williamr@2: This file contains allocated error codes and williamr@2: generic Panic error messages and the Panic function. williamr@2: The XmlFramework has been allocated error codes in the range: -17550 to -17599 williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #include williamr@2: williamr@2: namespace Xml williamr@2: { williamr@2: williamr@2: // Leave Codes williamr@2: williamr@2: // ECom related williamr@2: williamr@2: const TInt KErrXmlStringDictionaryPluginNotFound = -17550; williamr@2: const TInt KErrXmlParserPluginNotFound = -17551; williamr@2: const TInt KErrXmlGeneratorPluginNotFound = -17552; williamr@2: const TInt KErrXmlPluginNotFound = -17553; williamr@2: williamr@2: // CCharSetConverter williamr@2: williamr@2: const TInt KErrXmlBadCharacterConversion = -17554; williamr@2: const TInt KErrXmlUnsupportedCharacterSet = -17555; williamr@2: const TInt KErrXmlUnavailableCharacterSet = -17556; williamr@2: williamr@2: // MStringDictionary williamr@2: williamr@2: const TInt KErrXmlUnsupportedElement = -17557; williamr@2: const TInt KErrXmlUnsupportedAttribute = -17558; williamr@2: const TInt KErrXmlUnsupportedAttributeValue = -17559; williamr@2: const TInt KErrXmlMissingStringDictionary = -17560; williamr@2: williamr@2: // General williamr@2: williamr@2: const TInt KErrXmlUnsupportedDocumentVersion = -17561; williamr@2: const TInt KErrXmlDocumentCorrupt = -17562; williamr@2: const TInt KErrXmlStringPoolTableNotFound = -17563; williamr@2: const TInt KErrXmlBadIndex = -17564; williamr@2: const TInt KErrXmlUnsupportedExtInterface = -17566; williamr@2: williamr@2: // Custom resolver related williamr@2: /** williamr@2: Indicates the parser query is matched to more than one parser. williamr@2: This error can be returned only if the request is to leave in such a case - LeaveOnMany flag is set. williamr@2: */ williamr@2: const TInt KErrXmlMoreThanOneParserMatched = -17567; williamr@2: williamr@2: const TInt KErrXmlFirst = -17550; williamr@2: const TInt KErrXmlLast = -17599; williamr@2: williamr@2: // Panic Codes williamr@2: williamr@2: /** williamr@2: Indicates various Panic error conditions within the framework. williamr@2: williamr@2: @internalTechnology williamr@2: */ williamr@2: enum TXmlFrameworkPanic williamr@2: { williamr@2: /** williamr@2: Indicates that a leave code other than that expected was received. williamr@2: */ williamr@2: EXmlFrameworkPanicUnexpectedLeaveCode = 0, williamr@2: williamr@2: /** williamr@2: Indicates that a state other than that expected was reached. williamr@2: */ williamr@2: EXmlFrameworkPanicUnexpectedState = 1, williamr@2: williamr@2: /** williamr@2: Indicates that logic other than that expected was reached. williamr@2: */ williamr@2: EXmlFrameworkPanicUnexpectedLogic = 2, williamr@2: williamr@2: /** williamr@2: Indicates that internal document positioning has gone beyond EOF and has failed. williamr@2: */ williamr@2: EXmlFrameworkPanicPositionMisallignment = 3, williamr@2: williamr@2: /** williamr@2: Indicates that a reference count has reached a negative value. williamr@2: */ williamr@2: EXmlFrameworkPanicReferenceCountNegative = 4, williamr@2: williamr@2: /** williamr@2: Pointer is null, cannot dereference. williamr@2: */ williamr@2: EXmlFrameworkPanicNullPointer = 5, williamr@2: williamr@2: }; williamr@2: williamr@2: /** williamr@2: This method panics the thread williamr@2: williamr@2: @param aError The reason for the panic williamr@2: @internalTechnology williamr@2: */ williamr@2: void Panic(TXmlFrameworkPanic aError); williamr@2: williamr@2: williamr@2: } williamr@2: williamr@2: williamr@2: #endif // __XMLFRAMEWORKERRORS_H__