author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
parent 0 | 061f57f2323e |
child 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@2 | 1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 2 |
// All rights reserved. |
williamr@2 | 3 |
// This component and the accompanying materials are made available |
williamr@2 | 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 |
williamr@2 | 5 |
// which accompanies this distribution, and is available |
williamr@2 | 6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
williamr@2 | 7 |
// |
williamr@2 | 8 |
// Initial Contributors: |
williamr@2 | 9 |
// Nokia Corporation - initial contribution. |
williamr@2 | 10 |
// |
williamr@2 | 11 |
// Contributors: |
williamr@2 | 12 |
// |
williamr@2 | 13 |
// Description: |
williamr@2 | 14 |
// |
williamr@2 | 15 |
|
williamr@2 | 16 |
#ifndef __XMLFRAMEWORKERRORS_H__ |
williamr@2 | 17 |
#define __XMLFRAMEWORKERRORS_H__ |
williamr@2 | 18 |
|
williamr@2 | 19 |
/** |
williamr@2 | 20 |
@file |
williamr@2 | 21 |
|
williamr@2 | 22 |
This file contains allocated error codes and |
williamr@2 | 23 |
generic Panic error messages and the Panic function. |
williamr@2 | 24 |
The XmlFramework has been allocated error codes in the range: -17550 to -17599 |
williamr@2 | 25 |
|
williamr@2 | 26 |
@publishedAll |
williamr@2 | 27 |
@released |
williamr@2 | 28 |
*/ |
williamr@2 | 29 |
|
williamr@2 | 30 |
#include <e32base.h> |
williamr@2 | 31 |
|
williamr@2 | 32 |
namespace Xml |
williamr@2 | 33 |
{ |
williamr@2 | 34 |
|
williamr@2 | 35 |
// Leave Codes |
williamr@2 | 36 |
|
williamr@2 | 37 |
// ECom related |
williamr@2 | 38 |
|
williamr@2 | 39 |
const TInt KErrXmlStringDictionaryPluginNotFound = -17550; |
williamr@2 | 40 |
const TInt KErrXmlParserPluginNotFound = -17551; |
williamr@2 | 41 |
const TInt KErrXmlGeneratorPluginNotFound = -17552; |
williamr@2 | 42 |
const TInt KErrXmlPluginNotFound = -17553; |
williamr@2 | 43 |
|
williamr@2 | 44 |
// CCharSetConverter |
williamr@2 | 45 |
|
williamr@2 | 46 |
const TInt KErrXmlBadCharacterConversion = -17554; |
williamr@2 | 47 |
const TInt KErrXmlUnsupportedCharacterSet = -17555; |
williamr@2 | 48 |
const TInt KErrXmlUnavailableCharacterSet = -17556; |
williamr@2 | 49 |
|
williamr@2 | 50 |
// MStringDictionary |
williamr@2 | 51 |
|
williamr@2 | 52 |
const TInt KErrXmlUnsupportedElement = -17557; |
williamr@2 | 53 |
const TInt KErrXmlUnsupportedAttribute = -17558; |
williamr@2 | 54 |
const TInt KErrXmlUnsupportedAttributeValue = -17559; |
williamr@2 | 55 |
const TInt KErrXmlMissingStringDictionary = -17560; |
williamr@2 | 56 |
|
williamr@2 | 57 |
// General |
williamr@2 | 58 |
|
williamr@2 | 59 |
const TInt KErrXmlUnsupportedDocumentVersion = -17561; |
williamr@2 | 60 |
const TInt KErrXmlDocumentCorrupt = -17562; |
williamr@2 | 61 |
const TInt KErrXmlStringPoolTableNotFound = -17563; |
williamr@2 | 62 |
const TInt KErrXmlBadIndex = -17564; |
williamr@2 | 63 |
const TInt KErrXmlUnsupportedExtInterface = -17566; |
williamr@2 | 64 |
|
williamr@2 | 65 |
// Custom resolver related |
williamr@2 | 66 |
/** |
williamr@2 | 67 |
Indicates the parser query is matched to more than one parser. |
williamr@2 | 68 |
This error can be returned only if the request is to leave in such a case - LeaveOnMany flag is set. |
williamr@2 | 69 |
*/ |
williamr@2 | 70 |
const TInt KErrXmlMoreThanOneParserMatched = -17567; |
williamr@2 | 71 |
|
williamr@2 | 72 |
const TInt KErrXmlFirst = -17550; |
williamr@2 | 73 |
const TInt KErrXmlLast = -17599; |
williamr@2 | 74 |
|
williamr@2 | 75 |
// Panic Codes |
williamr@2 | 76 |
|
williamr@2 | 77 |
/** |
williamr@2 | 78 |
Indicates various Panic error conditions within the framework. |
williamr@2 | 79 |
|
williamr@2 | 80 |
@internalTechnology |
williamr@2 | 81 |
*/ |
williamr@2 | 82 |
enum TXmlFrameworkPanic |
williamr@2 | 83 |
{ |
williamr@2 | 84 |
/** |
williamr@2 | 85 |
Indicates that a leave code other than that expected was received. |
williamr@2 | 86 |
*/ |
williamr@2 | 87 |
EXmlFrameworkPanicUnexpectedLeaveCode = 0, |
williamr@2 | 88 |
|
williamr@2 | 89 |
/** |
williamr@2 | 90 |
Indicates that a state other than that expected was reached. |
williamr@2 | 91 |
*/ |
williamr@2 | 92 |
EXmlFrameworkPanicUnexpectedState = 1, |
williamr@2 | 93 |
|
williamr@2 | 94 |
/** |
williamr@2 | 95 |
Indicates that logic other than that expected was reached. |
williamr@2 | 96 |
*/ |
williamr@2 | 97 |
EXmlFrameworkPanicUnexpectedLogic = 2, |
williamr@2 | 98 |
|
williamr@2 | 99 |
/** |
williamr@2 | 100 |
Indicates that internal document positioning has gone beyond EOF and has failed. |
williamr@2 | 101 |
*/ |
williamr@2 | 102 |
EXmlFrameworkPanicPositionMisallignment = 3, |
williamr@2 | 103 |
|
williamr@2 | 104 |
/** |
williamr@2 | 105 |
Indicates that a reference count has reached a negative value. |
williamr@2 | 106 |
*/ |
williamr@2 | 107 |
EXmlFrameworkPanicReferenceCountNegative = 4, |
williamr@2 | 108 |
|
williamr@2 | 109 |
/** |
williamr@2 | 110 |
Pointer is null, cannot dereference. |
williamr@2 | 111 |
*/ |
williamr@2 | 112 |
EXmlFrameworkPanicNullPointer = 5, |
williamr@2 | 113 |
|
williamr@2 | 114 |
}; |
williamr@2 | 115 |
|
williamr@2 | 116 |
/** |
williamr@2 | 117 |
This method panics the thread |
williamr@2 | 118 |
|
williamr@2 | 119 |
@param aError The reason for the panic |
williamr@2 | 120 |
@internalTechnology |
williamr@2 | 121 |
*/ |
williamr@2 | 122 |
void Panic(TXmlFrameworkPanic aError); |
williamr@2 | 123 |
|
williamr@2 | 124 |
|
williamr@2 | 125 |
} |
williamr@2 | 126 |
|
williamr@2 | 127 |
|
williamr@2 | 128 |
#endif // __XMLFRAMEWORKERRORS_H__ |