|
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: Panics the current thread with the |
|
15 * Nokia Metadata Engine Client DLL panic category |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __MDEPANIC_H__ |
|
21 #define __MDEPANIC_H__ |
|
22 |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 /** |
|
28 * Panic utility class. |
|
29 */ |
|
30 NONSHARABLE_CLASS(TMdEPanic) |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Panic numbers. |
|
36 */ |
|
37 enum TReason |
|
38 { |
|
39 EInternal = 0, // Internal error (that is, a bug in the Metadata Engine Client DLL) |
|
40 |
|
41 ESessionOpenInProgress, // 1 |
|
42 ESessionDuplicateSchemaObserver, // 2 |
|
43 ESessionUnknownSchemaObserver, // 3 |
|
44 EItemDoesNotBelongToSession, // 4 |
|
45 EItemNotInDatabase, // 5 |
|
46 ESchemaItemInvalidNameSpaceUri, // 6 |
|
47 ESchemaItemSetDuplicateSchemaItem, // 7 |
|
48 EQuantifiedPropertyDefSetDuplicatePropertyDef, // 8 |
|
49 EQuantifiedPropertyDefSetIllegalPropertyDefCount, // 9 |
|
50 EPropertyDefInvalidSize, // 10 |
|
51 EIntPropertyDefInvalidMinAndMaxValues, // 11 |
|
52 ERealPropertyDefInvalidMinAndMaxValues, // 12 |
|
53 EObjectInvalidUri, // 13 |
|
54 EObjectInvalidPropertyDefType, // 14 |
|
55 EObjectPropertyBelongsToAnotherObject, // 15 |
|
56 EPropertyInvalidSourceUri, // 16 |
|
57 EPropertyReadOnly, // 17 |
|
58 ENumberPropertyIllegalTypeSize, // 18 |
|
59 EEventInvalidSourceUri, // 19 |
|
60 EEventInvalidParticipantUri, // 20 |
|
61 EQueryStateIllegalOperation, // 21 |
|
62 EQueryDoesntOwnResult, // 22 |
|
63 EQueryDuplicateObserver, // 23 |
|
64 EQueryUnknownObserver, // 24 |
|
65 EConditionLocked, // 25 |
|
66 ESchemaItemEmptyName, // 26 |
|
67 |
|
68 /* ESessionOpenFailed, |
|
69 EPropertyReadOnly, |
|
70 EPropertyInvalidOriginUri, |
|
71 EIntPropertyInvalidValue |
|
72 */ }; |
|
73 |
|
74 public: |
|
75 |
|
76 /** |
|
77 * Panics the current thread with the Nokia Metadata Engine Client DLL panic category |
|
78 * and the specified panic number. |
|
79 * |
|
80 * @param aReason panic number |
|
81 */ |
|
82 static void Panic(TReason aReason); |
|
83 }; |
|
84 |
|
85 |
|
86 #endif // __MDEPANIC_H__ |