|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Implements XCFW panic handling. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 #include "xcfwpanic.h" |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // TXCFWPanic::CheckPanic |
|
25 // Panic with given code if aOK == EFalse |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 void TXCFWPanic::CheckPanic( TBool aOK, TInt aReason ) |
|
29 { |
|
30 #ifdef __XCFW_MODULE_TEST |
|
31 #pragma BullseyeCoverage off |
|
32 #endif |
|
33 if ( !aOK ) |
|
34 { |
|
35 _LIT( KPanicText, "XML Content Framework" ); |
|
36 User::Panic( KPanicText, aReason ); |
|
37 } |
|
38 #ifdef __XCFW_MODULE_TEST |
|
39 #pragma BullseyeCoverage on |
|
40 #endif |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // TXCFWPanic::CheckLeaveL |
|
45 // Leave with given code if aOK == EFalse |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 void TXCFWPanic::CheckLeaveL( TBool aOK, TInt aReason ) |
|
49 { |
|
50 #ifdef __XCFW_MODULE_TEST |
|
51 #pragma BullseyeCoverage off |
|
52 #endif |
|
53 if ( !aOK ) |
|
54 { |
|
55 User::Leave( aReason ); |
|
56 } |
|
57 #ifdef __XCFW_MODULE_TEST |
|
58 #pragma BullseyeCoverage on |
|
59 #endif |
|
60 } |
|
61 |
|
62 |
|
63 // End of file |