sysstatemgmt/systemstatemgr/ssm/inc/ssmserverpanic.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined (__SSMSERVERPANICCODES_H__)
       
    17 #define __SSMSERVERPANICCODES_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 #include "ssmpanic.h"
       
    21 
       
    22 _LIT(KPanicSysStateMgr, "!SysStateMgr");
       
    23 
       
    24 /** Defines all possible panic codes within System State Management Server
       
    25 @internalComponent
       
    26 @released
       
    27 */
       
    28 enum TSsmServerPanicCodes
       
    29 	{
       
    30 	//
       
    31 	// Generic errors
       
    32 	//
       
    33 
       
    34 	// CSsmServer errors
       
    35 	// Failed to set SsmServer thread critical
       
    36 	ESsmServerError1,
       
    37 	// Failed to set SsmServer thread name
       
    38 	ESsmServerError2,
       
    39 	// NULL pointer in RequestStateTransitionL()
       
    40 	ESsmServerError3,
       
    41 
       
    42 	// CCleSessionProxy errors
       
    43 	// Tried to connect an already connected session
       
    44 	ESsmCCleSessionProxy1,
       
    45 
       
    46 	//
       
    47 	// Swp errors
       
    48 	//
       
    49 
       
    50 	// CSsmSwpPolicyResolver errors
       
    51 	// The policy resolver wasn't able to load the DLL
       
    52 	ESwpPolicyResolverLibraryNotLoaded,
       
    53 
       
    54 	// CSsmSwpPolicyFrame errors
       
    55 	// The internal policy pointer is not initialised in CallInitialize()
       
    56 	ESwpPolicyFrameError1,
       
    57 	// The internal policy pointer is not initialised in CallHandleCleReturnValueCancel()
       
    58 	ESwpPolicyFrameError2,
       
    59 	// The internal policy pointer is not initialised in CallTransitionAllowed()
       
    60 	ESwpPolicyFrameError3,
       
    61 	// The policy frame has not been initialised in CallTransitionAllowed()
       
    62 	ESwpPolicyFrameError4,
       
    63 	// The internal state was not correct for this operation in CallPrepareCommandList()
       
    64 	ESwpPolicyFrameError5,
       
    65 	// The requested key does not correspond to the loaded policy in CallPrepareCommandList()
       
    66 	ESwpPolicyFrameError6,
       
    67 	// The internal policy pointer is not initialised in CallPrepareCommandList()
       
    68 	ESwpPolicyFrameError7,
       
    69 	// The policy frame has not been initialised in CallPrepareCommandList()
       
    70 	ESwpPolicyFrameError8,
       
    71 	// The internal state was not correct for this operation in CallCommandList()
       
    72 	ESwpPolicyFrameError9,
       
    73 	// The internal policy pointer is not initialised in CallCommandList()
       
    74 	ESwpPolicyFrameError10,
       
    75 	// The policy frame has not been initialised in CallCommandList()
       
    76 	ESwpPolicyFrameError11,
       
    77 	// The internal state was not correct for this operation in CallHandleCleReturnValue()
       
    78 	ESwpPolicyFrameError12,
       
    79 	// The internal policy pointer is not initialised in CallHandleCleReturnValue()
       
    80 	ESwpPolicyFrameError13,
       
    81 	// The policy frame has not been initialised in CallHandleCleReturnValue()
       
    82 	ESwpPolicyFrameError14,
       
    83 	// The internal policy pointer is not initialised in CallInitializeCancel()
       
    84 	ESwpPolicyFrameError15,
       
    85 	// The internal policy pointer is not initialised in CallPrepareCommandListCancel()
       
    86 	ESwpPolicyFrameError16,
       
    87 	// The internal state was not correct for this operation in CallHandleCleReturnValueCancel()
       
    88 	ESwpPolicyFrameError17,
       
    89 	// The internal policy session proxy pointer is not initialised in CallInitialize()
       
    90 	ESwpPolicyFrameError18,
       
    91 	// The internal policy session proxy pointer is not initialised in CallPrepareCommandList()
       
    92 	ESwpPolicyFrameError19,
       
    93 	// The internal policy session proxy pointer is not initialised in CallCommandList()
       
    94 	ESwpPolicyFrameError20,
       
    95 	// The internal policy session proxy pointer is not initialised in CallHandleCleReturnValue()
       
    96 	ESwpPolicyFrameError21,
       
    97 	// The internal policy session proxy pointer is not initialised in CallInitializeCancel()
       
    98 	ESwpPolicyFrameError22,
       
    99 	// The internal policy session proxy pointer is not initialised in CallPrepareCommandListCancel()
       
   100 	ESwpPolicyFrameError23,
       
   101 	// The internal policy session proxy pointer is not initialised in CallHandleCleReturnValueCancel()
       
   102 	ESwpPolicyFrameError24,
       
   103 
       
   104 	// CSsmSwpRequestHandler errors
       
   105 	// The internal transition scheduler pointer is not initialised in SubmitRequestL()
       
   106 	ESwpRequestHandlerError1,
       
   107 	// The internal transition scheduler pointer is not initialised in SubmitRequestL()
       
   108 	ESwpRequestHandlerError2,
       
   109 	// The internal transition scheduler pointer is not initialised in Cancel()
       
   110 	ESwpRequestHandlerError3,
       
   111 	// The internal transition scheduler pointer is not initialised in DoSubmitRequestL()
       
   112 	ESwpRequestHandlerError4,
       
   113 	// The internal CLE session proxy pointer is not initialised in DoSubmitRequestL()
       
   114 	ESwpRequestHandlerError5,
       
   115 
       
   116 	// CSsmSwpTransitionEngine errors
       
   117 	// The CLE session proxy pointer parameter is null in SetCleSessionProxy()
       
   118 	ESwpTransitionEngineError1,
       
   119 	// The policy frame pointer parameter is null in SetSwpPolicyFrame()
       
   120 	ESwpTransitionEngineError2,
       
   121 	// The engine is already active in SubmitL()
       
   122 	ESwpTransitionEngineError3,
       
   123 	// The engine is already active in SubmitL()
       
   124 	ESwpTransitionEngineError4,
       
   125 	// The internal client status pointer is not null in SubmitL()
       
   126 	ESwpTransitionEngineError5,
       
   127 	// The internal state was not correct for this operation in DoSubmit()
       
   128 	ESwpTransitionEngineError6,
       
   129 	// The internal policy frame pointer is not initialised in DoCancel()
       
   130 	ESwpTransitionEngineError7,
       
   131 	// The internal policy frame pointer is not initialised in DoInitialize()
       
   132 	ESwpTransitionEngineError8,
       
   133 	// The internal policy frame pointer is not initialised in DoTransitionAllowed()
       
   134 	ESwpTransitionEngineError9,
       
   135 	// The internal policy frame pointer is not initialised in DoPrepareCommandList()
       
   136 	ESwpTransitionEngineError10,
       
   137 	// The internal policy frame pointer is not initialised in DoExecuteCommandListL()
       
   138 	ESwpTransitionEngineError11,
       
   139 	// The internal policy frame pointer is not initialised in DoHandleCleReturnValue()
       
   140 	ESwpTransitionEngineError12,
       
   141 	// The internal iCleSession pointer is not initialised in DoExecuteCommandListL()
       
   142 	ESwpTransitionEngineError13,
       
   143 	// The internal iCleSession pointer is not initialised in DoSubmit()
       
   144 	ESwpTransitionEngineError14,
       
   145 	// The internal iPolicyFrame pointer is not initialised in DoSubmit()
       
   146 	ESwpTransitionEngineError15,
       
   147 	// The command list returned by the Swp DLL implementation is not a valid Swp command list
       
   148 	ESwpTransitionEngineError16,
       
   149 	// iClientStatus unexpectedly not NULL when engine idle in DoCancel()
       
   150 	ESwpTransitionEngineError17,
       
   151 	// CSsmSwpTransitionEngine destructed before iClientMessage was completed
       
   152 	ESwpTransitionEngineError18,
       
   153 	// CSsmSwpTransitionEngine invalid state in RunL()
       
   154 	ESwpTransitionEngineError19,
       
   155 	// CSsmSwpTransitionEngine unexpected error in RunError()
       
   156 	ESwpTransitionEngineError20,
       
   157 	// The SsmSwpPolicySession proxy pointer parameter is null in SetSsmSwpPolicySessionProxy()
       
   158 	ESwpTransitionEngineError21,
       
   159 	// The internal policy frame pointer is not initialised in DoConnectSwpPolicySessionL()
       
   160 	ESwpTransitionEngineError22,
       
   161 	// The internal iSsmSwpPolicySession pointer is not initialised in DoSubmit()
       
   162 	ESwpTransitionEngineError23,
       
   163 	// CSsmSwpTransitionEngine unexpected error in  DoSubmit()
       
   164 	ESwpTransitionEngineError24,
       
   165 	
       
   166 	// CSsmSwpTransitionScheduler errors
       
   167 	// The queue is not empty on destruction in ~CSsmSwpTransitionScheduler()
       
   168 	ESwpTransitionSchedulerError1,
       
   169 	// The internal current transaction pointer is not null in DoSubmitL()
       
   170 	ESwpTransitionSchedulerError2,
       
   171 	// The scheduler is already active or not added to ActiveScheduler in ScheduleTransitionL()
       
   172 	ESwpTransitionSchedulerError3,
       
   173 	// The internal current transaction pointer is null in ScheduleTransitionL()
       
   174 	ESwpTransitionSchedulerError4,
       
   175 	// An ActiveScheduler return status error occured that caused RunError() to be called
       
   176 	ESwpTransitionSchedulerError5,
       
   177 
       
   178 	//
       
   179 	// State errors
       
   180 	//
       
   181 
       
   182 	// CSsmStateTransitionEngine errors
       
   183 	// An operation was attempted when a State Policy was not available
       
   184 	ESsmStateEngineError1,
       
   185 	// An attempt to create a CSsmStateTransitionEngine without MCleSessionProxy was detected
       
   186 	ESsmStateEngineError2,
       
   187 	// Failed to connect session to CleSrv in DoConnectCleSessionL()
       
   188 	ESsmStateEngineError3,
       
   189 	// Leave detected from virtual implementaion of MSsmStatePolicy::GetNextState
       
   190 	ESsmStateEngineError4,
       
   191 	// An attempt to create CSsmStateTransitionEngine without MSsmStatePolicyResolverProxy was detected
       
   192 	ESsmStateEngineError5,
       
   193 	// State Policy DLL failed to initialize
       
   194 	ESsmStateEngineError6,
       
   195 	// Failed to start transition, most likely due to a policy file error
       
   196 	ESsmStateEngineError7,
       
   197 	// State Policy DLL failed to prepare command list
       
   198 	ESsmStateEngineError8,
       
   199 	// Invalid state command list returned from policy DLL
       
   200 	ESsmStateEngineError9,
       
   201 	// DoSubmit called with intention EReplaceCurrentClearQueue without a preceding call to Cancel
       
   202 	ESsmStateEngineError10,
       
   203 	// Invalid state in RunL
       
   204 	ESsmStateEngineError11,
       
   205 	// Tried to connect an already connected session in DoConnectCleSessionL()
       
   206 	ESsmStateEngineError12,
       
   207 	// Attempt to dereference a NULL pointer in DoPrepareCommandList()
       
   208 	ESsmStateEngineError13,
       
   209 	// Attempt to dereference a NULL pointer in FurtherSubTransition()
       
   210 	ESsmStateEngineError14,
       
   211 	// Unknown error in CSsmStateTransitionEngine::RunError
       
   212 	ESsmStateEngineError15,
       
   213 
       
   214 	// CSsmStatePolicyFrame errors
       
   215 	// CallInitialize called when the CSsmStatePolicyFrame was in another state than EInitialize
       
   216 	ESsmStatePolicyError1,
       
   217 	// CallInitialize called but CSsmStatePolicyFrame was already initialized
       
   218 	ESsmStatePolicyError2,
       
   219 	// CallPrepareCommandList called when the CSsmStatePolicyFrame was in another state than EPrepare
       
   220 	ESsmStatePolicyError3,
       
   221 	// CallPrepareCommandList called on the wrong MSsmStatePolicy implementation
       
   222 	ESsmStatePolicyError4,
       
   223 	// CallCommandList called when the CSsmStatePolicyFrame was in another state than EGet
       
   224 	ESsmStatePolicyError5,
       
   225 	// CallGetNextState called when the CSsmStatePolicyFrame was in another state than ENext
       
   226 	ESsmStatePolicyError6,
       
   227 	// Trying to use a Null pointer in CallInitialize
       
   228 	ESsmStatePolicyError7,
       
   229 	// Trying to use a Null pointer in CallInitializeCancel
       
   230 	ESsmStatePolicyError8,
       
   231 	// Trying to use a Null pointer in CallRelease
       
   232 	ESsmStatePolicyError9,
       
   233 	// Trying to use a Null pointer in CallTransitionAllowed
       
   234 	ESsmStatePolicyError10,
       
   235 	// Trying to use a Null pointer in CallPrepareCommandList
       
   236 	ESsmStatePolicyError11,
       
   237 	// Trying to use a Null pointer in CallPrepareCommandListCancel
       
   238 	ESsmStatePolicyError12,
       
   239 	// Trying to use a Null pointer in CallCommandList
       
   240 	ESsmStatePolicyError13,
       
   241 	// Trying to use a Null pointer in CallGetNextState
       
   242 	ESsmStatePolicyError14,
       
   243 
       
   244 	// CSsmStatePolicyResolver errors
       
   245 	// Tried to use an RLibrary before it was loaded in CreatePolicyLC
       
   246 	ESsmStateResolverError1,
       
   247 
       
   248 	// CSsmStateTransitionRequest errors
       
   249 	// CSsmStateTransitionRequest deleted before iMessage was completed
       
   250 	ESsmTransitionRequestError1,
       
   251 	
       
   252 	// SSM failed to add the system state/startup domain hierarchy when starting
       
   253 	EAddDomainHierarchyError,
       
   254 	
       
   255 	//SSM failed to create SUS 
       
   256 	ESsmCreateSUSError,
       
   257 
       
   258 	// CSsmSwpPolicyProxy errors
       
   259 	// Tried to connect an already connected session
       
   260 	ESsmCSsmSwpPolicySession1,
       
   261 	
       
   262 	// CSsmSwpPolicyServer errors
       
   263 	// The internal policy pointer is not initialised in CallInitializeCancel()
       
   264 	ESsmSwpPolicyServerError1,
       
   265 	// The internal policy pointer is not initialised in CallPrepareCommandList()
       
   266 	ESsmSwpPolicyServerError2,
       
   267 	// The internal policy pointer is not initialised in CallPrepareCommandListCancel()
       
   268 	ESsmSwpPolicyServerError3,
       
   269 	// The internal policy pointer is not initialised in CallCommandList()
       
   270 	ESsmSwpPolicyServerError4,
       
   271 	// The internal policy pointer is not initialised in CallHandleCleReturnValue()
       
   272 	ESsmSwpPolicyServerError5,
       
   273 	// The internal policy pointer is not initialised in CallHandleCleReturnValueCancel()
       
   274 	ESsmSwpPolicyServerError6,
       
   275 
       
   276 	// CallInitialize called when CSsmSwpPolicyStepCompletion is not in ENull state
       
   277 	ESsmSwpPolicySrvStepError1,
       
   278 	// CallPrepareCommandList called when CSsmSwpPolicyStepCompletion is not in EInitialize state
       
   279 	ESsmSwpPolicySrvStepError2,
       
   280 	// CallCommandListL called when CSsmSwpPolicyStepCompletion is not in EPrepareCommandList state
       
   281 	ESsmSwpPolicySrvStepError3,
       
   282 	// CallHandleCleReturnValue called when is not in ECallCommandList state
       
   283 	ESsmSwpPolicySrvStepError4
       
   284 	};
       
   285 
       
   286 #endif // __SSMSERVERPANICCODES_H__