os/textandloc/charconvfw/charconv_fw/src/charconv/chcnvpanic.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/charconvfw/charconv_fw/src/charconv/chcnvpanic.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,142 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-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 "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.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 +
    1.21 +
    1.22 +#ifndef __CHCNVPANIC_H__
    1.23 +#define __CHCNVPANIC_H__
    1.24 +
    1.25 +#include "e32std.h"
    1.26 +
    1.27 +enum TPanic
    1.28 +	{
    1.29 +	EPanicDestructionDuringConversion=1,
    1.30 +	EPanicBadTlsDataReferenceCount,
    1.31 +	EPanicNoTlsData,
    1.32 +	EPanicBadToggleOfCurrentCharacterSetConverter,
    1.33 +	EPanicPastEndOfFile,
    1.34 +	EPanicNotPastFlagPoleForReAllocation,
    1.35 +	EPanicReAllocatedCellMoved,
    1.36 +	EPanicNegativeNumberOfBytes,
    1.37 +	EPanicInconsistentFileReader1,
    1.38 +	EPanicInconsistentFileReader2,
    1.39 +	EPanicInconsistentFileReader3,
    1.40 +	EPanicInconsistentFileReader4,
    1.41 +	EPanicInconsistentFileReader5,
    1.42 +	EPanicInconsistentFileReader6,
    1.43 +	EPanicInconsistentFileReader7,
    1.44 +	EPanicInconsistentFileReader8,
    1.45 +	EPanicInconsistentFileReader9,
    1.46 +	EPanicInconsistentFileReader10,
    1.47 +	EPanicInconsistentFileReader11,
    1.48 +	EPanicInconsistentFileReader12,
    1.49 +	EPanicInconsistentFileReader13,
    1.50 +	EPanicInconsistentFileReader14,
    1.51 +	EPanicInconsistentFileReader15,
    1.52 +	EPanicInconsistentFileReader16,
    1.53 +	EPanicInconsistentFileReader17,
    1.54 +	EPanicInconsistentFileReader18,
    1.55 +	EPanicNegativeBufferLength1,
    1.56 +	EPanicNegativeBufferLength2,
    1.57 +	EPanicCharacterSetAlreadyAdded,
    1.58 +	EPanicNotInitialisedToNull1,
    1.59 +	EPanicNotInitialisedToNull2,
    1.60 +	EPanicCharacterSetsNotSorted,
    1.61 +	EPanicNotInitialisedToZero1,
    1.62 +	EPanicNotInitialisedToZero2,
    1.63 +	EPanicPointerPastUpperLimit1,
    1.64 +	EPanicPointerPastUpperLimit2,
    1.65 +	EPanicPointerPastUpperLimit3,
    1.66 +	EPanicPointerPastUpperLimit4,
    1.67 +	EPanicPointerPastUpperLimit5,
    1.68 +	EPanicPointerPastUpperLimit6,
    1.69 +	EPanicPointerPastUpperLimit7,
    1.70 +	EPanicPointerPastUpperLimit8,
    1.71 +	EPanicPointerPastUpperLimit9,
    1.72 +	EPanicPointerPastUpperLimit10,
    1.73 +	EPanicPointerPastUpperLimit11,
    1.74 +	EPanicPointerPastUpperLimit12,
    1.75 +	EPanicPointerPastUpperLimit13,
    1.76 +	EPanicPointerPastUpperLimit14,
    1.77 +	EPanicPointerPastUpperLimit15,
    1.78 +	EPanicPointerPastUpperLimit16,
    1.79 +	EPanicPointerPastUpperLimit17,
    1.80 +	EPanicPointerPastUpperLimit18,
    1.81 +	EPanicPointerPastUpperLimit19,
    1.82 +	EPanicPointerPastUpperLimit20,
    1.83 +	EPanicPointerPastUpperLimit21,
    1.84 +	EPanicPointerPastUpperLimit22,
    1.85 +	EPanicPointerPastUpperLimit23,
    1.86 +	EPanicPointerPastUpperLimit24,
    1.87 +	EPanicPointerPastUpperLimit25,
    1.88 +	EPanicBadDefaultEndiannessOfForeignCharacters,
    1.89 +	EPanicBadDowngradeForExoticLineTerminatingCharacters1,
    1.90 +	EPanicBadDowngradeForExoticLineTerminatingCharacters2,
    1.91 +	EPanicNullCharacterSetIdentifier1,
    1.92 +	EPanicNullCharacterSetIdentifier2,
    1.93 +	EPanicNullCharacterSetIdentifier3,
    1.94 +	EPanicNameIsNotFileName,
    1.95 +	EPanicNotReachedEndOfFile,
    1.96 +	EPanicNoReplacementForUnconvertibleUnicodeCharacters,
    1.97 +	EPanicNoConversionData1,
    1.98 +	EPanicNoConversionData2,
    1.99 +	EPanicInputCharacterCodeNotInRange,
   1.100 +	EPanicZeroOffset1,
   1.101 +	EPanicZeroOffset2,
   1.102 +	EPanicEmptyKeyedTable1616,
   1.103 +	EPanicEmptyKeyedTable3232,
   1.104 +	EPanicBadIndices1,
   1.105 +	EPanicBadIndices2,
   1.106 +	EPanicEmptyKeyedTable16OfIndexedTables16,
   1.107 +	EPanicEmptyKeyedTable32OfIndexedTables32,
   1.108 +	EPanicBadAlgorithm1,
   1.109 +	EPanicBadAlgorithm2,
   1.110 +	EPanicNullPointer1,
   1.111 +	EPanicNullPointer2,
   1.112 +	EPanicCrossedPointers,
   1.113 +	EPanicBadNumberOfRanges1,
   1.114 +	EPanicBadNumberOfRanges2,
   1.115 +	EPanicBadNumberOfRanges3,
   1.116 +	EPanicBadNumberOfRanges4,
   1.117 +	EPanicBadNumberOfRanges5,
   1.118 +	EPanicPointerPastLowerLimit1,
   1.119 +	EPanicPointerPastLowerLimit2,
   1.120 +	EPanicBadNon16BitCharacterCode1,
   1.121 +	EPanicBadNon16BitCharacterCode2,
   1.122 +	EPanicBadSizeOfForeignOutputCharacterCode,
   1.123 +	EPanicBadEndianness1,
   1.124 +	EPanicBadEndianness2,
   1.125 +	EPanicBadEndianness3,
   1.126 +	EPanicBadNumberOfRemainingForeignBytes1,
   1.127 +	EPanicBadNumberOfRemainingForeignBytes2,
   1.128 +	EPanicBadNumberOfSubsequentBytes,
   1.129 +	EPanicBadIndex,
   1.130 +	EPanicDuplicateIndexOrNotAscending,
   1.131 +	EPanicBadNumberOfUnconvertibleCharacters,
   1.132 +	EPanicCharacterSetNotPresent,
   1.133 +	EPanicCharacterSetConverterNotDestroyed,	
   1.134 + 	EPanicNullCharacterSetIdentifier4,			
   1.135 + 	EPanicCharacterSetConverterNotLoaded
   1.136 +	};
   1.137 +
   1.138 +_LIT(KLitPanicText, "CHARCONV");
   1.139 +
   1.140 +inline void Panic(TPanic aPanic)
   1.141 +	{
   1.142 +	User::Panic(KLitPanicText, aPanic);
   1.143 +	}
   1.144 +
   1.145 +#endif //__CHCNVPANIC_H__