persistentstorage/sql/SRC/Common/SqlPanic.h
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
     1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 #ifndef __SQLPANIC_H__
    16 #ifndef __SQLPANIC_H__
    17 #define __SQLPANIC_H__
    17 #define __SQLPANIC_H__
       
    18 
       
    19 #include "SqlAssert.h"
       
    20 
       
    21 //Forward declarations
       
    22 class RMessage2;
    18 
    23 
    19 /**
    24 /**
    20 TSqlPanic contains panic codes which may used by the SQL component (SqlDb.dll and SqlSrv.exe).
    25 TSqlPanic contains panic codes which may used by the SQL component (SqlDb.dll and SqlSrv.exe).
    21 
    26 
    22 @publishedAll
    27 @publishedAll
    37 	ESqlPanicInvalidRow			=  11,
    42 	ESqlPanicInvalidRow			=  11,
    38 	ESqlPanicMisuse				=  12,
    43 	ESqlPanicMisuse				=  12,
    39 	ESqlPanicBadDescriptor		=  13
    44 	ESqlPanicBadDescriptor		=  13
    40 	};
    45 	};
    41 
    46 
       
    47 /**
       
    48 This function panics the thread where it is called from with aPanicCode panic code.
       
    49 
       
    50 @param aPanicCode Panic code
       
    51 
       
    52 @internalComponent
       
    53 */
       
    54 void SqlPanic(TSqlPanic aPanicCode);
       
    55 
       
    56 /**
       
    57 This function is used inside the SQL server to panic the calling client.
       
    58 
       
    59 @param aMessage The message which processing causes the panic.
       
    60 @param aPanicCode Panic code
       
    61 
       
    62 @leave KSqlLeavePanic
       
    63 
       
    64 @return KErrNone
       
    65 
       
    66 @internalComponent
       
    67 */
       
    68 TInt SqlPanicClientL(const RMessage2& aMessage, TSqlPanic aPanicCode);
       
    69 	
    42 #endif //__SQLPANIC_H__
    70 #endif //__SQLPANIC_H__