devicediagnosticsfw/diagframework/inc/diagframework.pan
branchRCL_3
changeset 25 b183ec05bd8c
parent 24 13d7c31c74e0
child 26 19bba8228ff0
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
     1 /*
       
     2 * Copyright (c) 2007 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:  Enum definition of Framdwork Panic Codes
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DIAGFRAMEWORK_PAN
       
    20 #define DIAGFRAMEWORK_PAN
       
    21 
       
    22 /**
       
    23 * Panic Codes for Diagnostics Framework
       
    24 * 
       
    25 * @since 5.0
       
    26 */
       
    27 enum TDiagFrameworkPanics
       
    28     {
       
    29     EDiagFrameworkBadArgument           = 1,    // Invalid input parameter
       
    30     EDiagFrameworkInvalidState          = 2,    // Function called in incorrect state
       
    31     EDiagFrameworkInvalidEvent          = 3,    // Even not valid in current state.
       
    32     EDiagFrameworkCorruptStateMachine   = 4,    // State machine may be corrupted.
       
    33     EDiagFrameworkArrayBounds           = 5,    // Array out of bounds
       
    34     EDiagFrameworkCorruptPlugin         = 6,    // Plug-in information is corrupted.
       
    35     EDiagFrameworkNullTestResult        = 7,    // Test result is NULL
       
    36     EDiagFrameworkInternal              = 8,    // Other framework internal error
       
    37     EDiagFrameworkDb                    = 9,    // Database related errors.
       
    38     EDiagFrameworkPlugin                = 10    // General plug-in behavior error
       
    39     };
       
    40 
       
    41 _LIT(KDiagFwCategory,"Diag Fw");
       
    42 
       
    43 inline void Panic( TDiagFrameworkPanics aReason )
       
    44     {
       
    45     User::Panic( KDiagFwCategory, aReason );
       
    46     }
       
    47 
       
    48 #endif // DIAGFRAMEWORK_PAN