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