equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 the current thread. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __PROFILEENGPANIC_H__ |
|
21 #define __PROFILEENGPANIC_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // DATA TYPES |
|
27 enum TProfileEngPanics |
|
28 { |
|
29 EProfileEngPanicNullPointer = 1, // Null pointer exception |
|
30 EProfileEngPanicBadParameter = 2 // Incorrect parameter |
|
31 }; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * This class used to panic the current thread. |
|
37 * |
|
38 * @lib ?library |
|
39 * @since 2.0 |
|
40 */ |
|
41 class ProfileEngPanic |
|
42 { |
|
43 public: // New functions |
|
44 |
|
45 /** |
|
46 * Panics the current thread, |
|
47 * specifying a category name and panic number. |
|
48 * @since 2.0 |
|
49 * @param aReason The panic number. |
|
50 */ |
|
51 static void Panic( TInt aReason ); |
|
52 }; |
|
53 |
|
54 #endif // __PROFILEENGPANIC_H__ |
|
55 |
|
56 // End of File |