|
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: widget exception |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef ALFWIDGETEXCEPTION_H_ |
|
22 #define ALFWIDGETEXCEPTION_H_ |
|
23 |
|
24 #include <alf/alfexception.h> |
|
25 |
|
26 using namespace std; |
|
27 |
|
28 namespace osncore |
|
29 { |
|
30 |
|
31 /** |
|
32 * @class AlfWidgetException alfwidgetexception.h "alf/alfwidgetexception.h" |
|
33 * Widget exception class. |
|
34 * |
|
35 * @lib alfwidgetutils.lib |
|
36 * @since S60 ?S60_version |
|
37 * @status Draft |
|
38 */ |
|
39 class AlfWidgetException : public AlfException |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Constructor. |
|
44 * @param aErrorCode Error code |
|
45 */ |
|
46 OSN_IMPORT AlfWidgetException( const int aErrorCode ) throw(); |
|
47 |
|
48 /** |
|
49 * Constructor. |
|
50 * @param aErrorCode Error code |
|
51 * @param aInfo Optional additional information or NULL |
|
52 * @param aFileAndLine Optional file and line information or NULL |
|
53 */ |
|
54 OSN_IMPORT AlfWidgetException( |
|
55 int aErrorCode, const char* aInfo, const char* aFileAndLine ) throw(); |
|
56 |
|
57 /** |
|
58 * Class Destructor. |
|
59 */ |
|
60 OSN_IMPORT virtual ~AlfWidgetException() throw(); |
|
61 |
|
62 /** |
|
63 * Returns the description of the exception. |
|
64 * @ret The description of the exception. |
|
65 */ |
|
66 OSN_IMPORT virtual const char* what() const throw(); |
|
67 }; |
|
68 |
|
69 } |
|
70 |
|
71 #endif //ALFWIDGETEXCEPTION_H_ |
|
72 |
|
73 // End of File |