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