sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef __CHCNVPANIC_H__
|
sl@0
|
20 |
#define __CHCNVPANIC_H__
|
sl@0
|
21 |
|
sl@0
|
22 |
#include "e32std.h"
|
sl@0
|
23 |
|
sl@0
|
24 |
enum TPanic
|
sl@0
|
25 |
{
|
sl@0
|
26 |
EPanicDestructionDuringConversion=1,
|
sl@0
|
27 |
EPanicBadTlsDataReferenceCount,
|
sl@0
|
28 |
EPanicNoTlsData,
|
sl@0
|
29 |
EPanicBadToggleOfCurrentCharacterSetConverter,
|
sl@0
|
30 |
EPanicPastEndOfFile,
|
sl@0
|
31 |
EPanicNotPastFlagPoleForReAllocation,
|
sl@0
|
32 |
EPanicReAllocatedCellMoved,
|
sl@0
|
33 |
EPanicNegativeNumberOfBytes,
|
sl@0
|
34 |
EPanicInconsistentFileReader1,
|
sl@0
|
35 |
EPanicInconsistentFileReader2,
|
sl@0
|
36 |
EPanicInconsistentFileReader3,
|
sl@0
|
37 |
EPanicInconsistentFileReader4,
|
sl@0
|
38 |
EPanicInconsistentFileReader5,
|
sl@0
|
39 |
EPanicInconsistentFileReader6,
|
sl@0
|
40 |
EPanicInconsistentFileReader7,
|
sl@0
|
41 |
EPanicInconsistentFileReader8,
|
sl@0
|
42 |
EPanicInconsistentFileReader9,
|
sl@0
|
43 |
EPanicInconsistentFileReader10,
|
sl@0
|
44 |
EPanicInconsistentFileReader11,
|
sl@0
|
45 |
EPanicInconsistentFileReader12,
|
sl@0
|
46 |
EPanicInconsistentFileReader13,
|
sl@0
|
47 |
EPanicInconsistentFileReader14,
|
sl@0
|
48 |
EPanicInconsistentFileReader15,
|
sl@0
|
49 |
EPanicInconsistentFileReader16,
|
sl@0
|
50 |
EPanicInconsistentFileReader17,
|
sl@0
|
51 |
EPanicInconsistentFileReader18,
|
sl@0
|
52 |
EPanicNegativeBufferLength1,
|
sl@0
|
53 |
EPanicNegativeBufferLength2,
|
sl@0
|
54 |
EPanicCharacterSetAlreadyAdded,
|
sl@0
|
55 |
EPanicNotInitialisedToNull1,
|
sl@0
|
56 |
EPanicNotInitialisedToNull2,
|
sl@0
|
57 |
EPanicCharacterSetsNotSorted,
|
sl@0
|
58 |
EPanicNotInitialisedToZero1,
|
sl@0
|
59 |
EPanicNotInitialisedToZero2,
|
sl@0
|
60 |
EPanicPointerPastUpperLimit1,
|
sl@0
|
61 |
EPanicPointerPastUpperLimit2,
|
sl@0
|
62 |
EPanicPointerPastUpperLimit3,
|
sl@0
|
63 |
EPanicPointerPastUpperLimit4,
|
sl@0
|
64 |
EPanicPointerPastUpperLimit5,
|
sl@0
|
65 |
EPanicPointerPastUpperLimit6,
|
sl@0
|
66 |
EPanicPointerPastUpperLimit7,
|
sl@0
|
67 |
EPanicPointerPastUpperLimit8,
|
sl@0
|
68 |
EPanicPointerPastUpperLimit9,
|
sl@0
|
69 |
EPanicPointerPastUpperLimit10,
|
sl@0
|
70 |
EPanicPointerPastUpperLimit11,
|
sl@0
|
71 |
EPanicPointerPastUpperLimit12,
|
sl@0
|
72 |
EPanicPointerPastUpperLimit13,
|
sl@0
|
73 |
EPanicPointerPastUpperLimit14,
|
sl@0
|
74 |
EPanicPointerPastUpperLimit15,
|
sl@0
|
75 |
EPanicPointerPastUpperLimit16,
|
sl@0
|
76 |
EPanicPointerPastUpperLimit17,
|
sl@0
|
77 |
EPanicPointerPastUpperLimit18,
|
sl@0
|
78 |
EPanicPointerPastUpperLimit19,
|
sl@0
|
79 |
EPanicPointerPastUpperLimit20,
|
sl@0
|
80 |
EPanicPointerPastUpperLimit21,
|
sl@0
|
81 |
EPanicPointerPastUpperLimit22,
|
sl@0
|
82 |
EPanicPointerPastUpperLimit23,
|
sl@0
|
83 |
EPanicPointerPastUpperLimit24,
|
sl@0
|
84 |
EPanicPointerPastUpperLimit25,
|
sl@0
|
85 |
EPanicBadDefaultEndiannessOfForeignCharacters,
|
sl@0
|
86 |
EPanicBadDowngradeForExoticLineTerminatingCharacters1,
|
sl@0
|
87 |
EPanicBadDowngradeForExoticLineTerminatingCharacters2,
|
sl@0
|
88 |
EPanicNullCharacterSetIdentifier1,
|
sl@0
|
89 |
EPanicNullCharacterSetIdentifier2,
|
sl@0
|
90 |
EPanicNullCharacterSetIdentifier3,
|
sl@0
|
91 |
EPanicNameIsNotFileName,
|
sl@0
|
92 |
EPanicNotReachedEndOfFile,
|
sl@0
|
93 |
EPanicNoReplacementForUnconvertibleUnicodeCharacters,
|
sl@0
|
94 |
EPanicNoConversionData1,
|
sl@0
|
95 |
EPanicNoConversionData2,
|
sl@0
|
96 |
EPanicInputCharacterCodeNotInRange,
|
sl@0
|
97 |
EPanicZeroOffset1,
|
sl@0
|
98 |
EPanicZeroOffset2,
|
sl@0
|
99 |
EPanicEmptyKeyedTable1616,
|
sl@0
|
100 |
EPanicEmptyKeyedTable3232,
|
sl@0
|
101 |
EPanicBadIndices1,
|
sl@0
|
102 |
EPanicBadIndices2,
|
sl@0
|
103 |
EPanicEmptyKeyedTable16OfIndexedTables16,
|
sl@0
|
104 |
EPanicEmptyKeyedTable32OfIndexedTables32,
|
sl@0
|
105 |
EPanicBadAlgorithm1,
|
sl@0
|
106 |
EPanicBadAlgorithm2,
|
sl@0
|
107 |
EPanicNullPointer1,
|
sl@0
|
108 |
EPanicNullPointer2,
|
sl@0
|
109 |
EPanicCrossedPointers,
|
sl@0
|
110 |
EPanicBadNumberOfRanges1,
|
sl@0
|
111 |
EPanicBadNumberOfRanges2,
|
sl@0
|
112 |
EPanicBadNumberOfRanges3,
|
sl@0
|
113 |
EPanicBadNumberOfRanges4,
|
sl@0
|
114 |
EPanicBadNumberOfRanges5,
|
sl@0
|
115 |
EPanicPointerPastLowerLimit1,
|
sl@0
|
116 |
EPanicPointerPastLowerLimit2,
|
sl@0
|
117 |
EPanicBadNon16BitCharacterCode1,
|
sl@0
|
118 |
EPanicBadNon16BitCharacterCode2,
|
sl@0
|
119 |
EPanicBadSizeOfForeignOutputCharacterCode,
|
sl@0
|
120 |
EPanicBadEndianness1,
|
sl@0
|
121 |
EPanicBadEndianness2,
|
sl@0
|
122 |
EPanicBadEndianness3,
|
sl@0
|
123 |
EPanicBadNumberOfRemainingForeignBytes1,
|
sl@0
|
124 |
EPanicBadNumberOfRemainingForeignBytes2,
|
sl@0
|
125 |
EPanicBadNumberOfSubsequentBytes,
|
sl@0
|
126 |
EPanicBadIndex,
|
sl@0
|
127 |
EPanicDuplicateIndexOrNotAscending,
|
sl@0
|
128 |
EPanicBadNumberOfUnconvertibleCharacters,
|
sl@0
|
129 |
EPanicCharacterSetNotPresent,
|
sl@0
|
130 |
EPanicCharacterSetConverterNotDestroyed,
|
sl@0
|
131 |
EPanicNullCharacterSetIdentifier4,
|
sl@0
|
132 |
EPanicCharacterSetConverterNotLoaded
|
sl@0
|
133 |
};
|
sl@0
|
134 |
|
sl@0
|
135 |
_LIT(KLitPanicText, "CHARCONV");
|
sl@0
|
136 |
|
sl@0
|
137 |
inline void Panic(TPanic aPanic)
|
sl@0
|
138 |
{
|
sl@0
|
139 |
User::Panic(KLitPanicText, aPanic);
|
sl@0
|
140 |
}
|
sl@0
|
141 |
|
sl@0
|
142 |
#endif //__CHCNVPANIC_H__
|