epoc32/include/xml/xmlframeworkerrors.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/xml/xmlframeworkerrors.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/xml/xmlframeworkerrors.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,128 @@
     1.4 -xmlframeworkerrors.h
     1.5 +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +#ifndef __XMLFRAMEWORKERRORS_H__
    1.21 +#define __XMLFRAMEWORKERRORS_H__
    1.22 +
    1.23 +/**
    1.24 +@file
    1.25 +
    1.26 +This file contains allocated error codes and
    1.27 +generic Panic error messages and the Panic function.
    1.28 +The XmlFramework has been allocated error codes in the range: -17550 to -17599 
    1.29 +
    1.30 +@publishedAll
    1.31 +@released
    1.32 +*/
    1.33 +
    1.34 +#include <e32base.h>
    1.35 +
    1.36 +namespace Xml
    1.37 +{
    1.38 +
    1.39 +// Leave Codes
    1.40 +
    1.41 +// ECom related
    1.42 +
    1.43 +const TInt KErrXmlStringDictionaryPluginNotFound	= -17550;
    1.44 +const TInt KErrXmlParserPluginNotFound				= -17551;
    1.45 +const TInt KErrXmlGeneratorPluginNotFound			= -17552;
    1.46 +const TInt KErrXmlPluginNotFound					= -17553;
    1.47 +
    1.48 +// CCharSetConverter
    1.49 +
    1.50 +const TInt KErrXmlBadCharacterConversion			= -17554;
    1.51 +const TInt KErrXmlUnsupportedCharacterSet			= -17555;
    1.52 +const TInt KErrXmlUnavailableCharacterSet			= -17556;
    1.53 +
    1.54 +// MStringDictionary
    1.55 +
    1.56 +const TInt KErrXmlUnsupportedElement				= -17557;
    1.57 +const TInt KErrXmlUnsupportedAttribute				= -17558;
    1.58 +const TInt KErrXmlUnsupportedAttributeValue			= -17559;
    1.59 +const TInt KErrXmlMissingStringDictionary			= -17560;
    1.60 +
    1.61 +// General
    1.62 +
    1.63 +const TInt KErrXmlUnsupportedDocumentVersion		= -17561;
    1.64 +const TInt KErrXmlDocumentCorrupt					= -17562;
    1.65 +const TInt KErrXmlStringPoolTableNotFound			= -17563;
    1.66 +const TInt KErrXmlBadIndex							= -17564;
    1.67 +const TInt KErrXmlUnsupportedExtInterface			= -17566;
    1.68 +
    1.69 +// Custom resolver related
    1.70 +/**
    1.71 +Indicates the parser query is matched to more than one parser. 
    1.72 +This error can be returned only if the request is to leave in such a case - LeaveOnMany flag is set.
    1.73 +*/
    1.74 +const TInt KErrXmlMoreThanOneParserMatched			= -17567;
    1.75 +
    1.76 +const TInt KErrXmlFirst                             = -17550;
    1.77 +const TInt KErrXmlLast                              = -17599;
    1.78 +
    1.79 +// Panic Codes
    1.80 +
    1.81 +/**
    1.82 +Indicates various Panic error conditions within the framework.
    1.83 +
    1.84 +@internalTechnology
    1.85 +*/
    1.86 +enum TXmlFrameworkPanic
    1.87 +	{
    1.88 +	/**
    1.89 +	Indicates that a leave code other than that expected was received.
    1.90 +	*/
    1.91 +	EXmlFrameworkPanicUnexpectedLeaveCode		= 0,
    1.92 +
    1.93 +	/**
    1.94 +	Indicates that a state other than that expected was reached.
    1.95 +	*/
    1.96 +	EXmlFrameworkPanicUnexpectedState			= 1,
    1.97 +
    1.98 +	/**
    1.99 +	Indicates that logic other than that expected was reached.
   1.100 +	*/
   1.101 +	EXmlFrameworkPanicUnexpectedLogic			= 2,
   1.102 +
   1.103 +	/**
   1.104 +	Indicates that internal document positioning has gone beyond EOF and has failed.
   1.105 +	*/
   1.106 +	EXmlFrameworkPanicPositionMisallignment		= 3,
   1.107 +
   1.108 +	/**
   1.109 +	Indicates that a reference count has reached a negative value.
   1.110 +	*/
   1.111 +	EXmlFrameworkPanicReferenceCountNegative	= 4,
   1.112 +
   1.113 +	/**
   1.114 +	Pointer is null, cannot dereference.
   1.115 +	*/
   1.116 +	EXmlFrameworkPanicNullPointer				= 5,
   1.117 +
   1.118 +	};
   1.119 +
   1.120 +/**
   1.121 +This method panics the thread
   1.122 +
   1.123 +@param aError The reason for the panic
   1.124 +@internalTechnology
   1.125 +*/
   1.126 +void Panic(TXmlFrameworkPanic aError);
   1.127 +
   1.128 +
   1.129 +}
   1.130 +
   1.131 +
   1.132 +#endif // __XMLFRAMEWORKERRORS_H__