symport/bafl/inc/stringpoolerr.h
changeset 1 0a7b44b10206
child 2 806186ab5e14
equal deleted inserted replaced
0:c55016431358 1:0a7b44b10206
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __STRINGPOOLERR_H
       
    17 #define __STRINGPOOLERR_H
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <e32base.h>
       
    21 
       
    22 class StringPoolPanic
       
    23 /**
       
    24 @internalComponent
       
    25 */
       
    26 	{
       
    27 public:
       
    28 	enum TStringPoolPanic
       
    29 		{
       
    30 		EComparisonBetweenTwoStringPoolsNotAllowed=0,// We are trying to compare a string from one string pool to a string from another string pool
       
    31 		EIllegalUseOfNullString,
       
    32 		ECreatingStringWithWrongCase,
       
    33         EStringNotTableEntry,
       
    34         EStringTableNotFound
       
    35 		};
       
    36 	static void Panic(TStringPoolPanic aPanic);
       
    37 	};
       
    38 
       
    39 inline void StringPoolPanic::Panic(StringPoolPanic::TStringPoolPanic aPanic)
       
    40 	{
       
    41 	_LIT(KStringPoolPanic,"StringPool");
       
    42 	User::Panic(KStringPoolPanic,aPanic);
       
    43 	}
       
    44 
       
    45 #endif // __STRINGPOOLERR_H
       
    46