analyzetool/dynamicmemoryhook/inc/analyzetoolpanics.pan
branchRCL_3
changeset 13 da2cedce4920
equal deleted inserted replaced
12:d27dfa8884ad 13:da2cedce4920
       
     1 /*
       
     2 * Copyright (c) 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:  Panic codes and definition of a panic function for the Memory Hook
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ANALYZETOOLPANICS_PAN_H
       
    20 #define ANALYZETOOLPANICS_PAN_H
       
    21 
       
    22 _LIT( KAnalyzeToolName, "AnalyzeTool" );
       
    23 
       
    24 /** AnalyzeTool application panic codes */
       
    25 enum TAnalyzeToolPanics
       
    26     {
       
    27     ENoMemory = 1,
       
    28     EFailedToCreateHeap,
       
    29     ECantOpenHandle,
       
    30     ECantLoadDevice,
       
    31     ECantAppendToTheArray,
       
    32     ECantFindRightThread,
       
    33     ECantConnectStorageServer,
       
    34     ECantShareStorageServer,
       
    35     ECantCreateMutex,
       
    36     ECantLoadDeviceDriver,
       
    37     ECantConnectDeviceDriver
       
    38     // add further panics here
       
    39     };
       
    40 
       
    41 inline void AssertPanic(TAnalyzeToolPanics aReason)
       
    42     {
       
    43     User::Panic( KAnalyzeToolName, aReason );
       
    44     }
       
    45 
       
    46 #endif // ANALYZETOOLPANICS_PAN_H