equal
deleted
inserted
replaced
|
1 // Copyright (c) 2003-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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef EPOCERROR_H |
|
23 #define EPOCERROR_H |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 class EpocError : CBase |
|
28 /** |
|
29 @internalComponent |
|
30 */ |
|
31 { |
|
32 public: |
|
33 EpocError(){} |
|
34 TBool Evaluate(TInt err); |
|
35 TPtrC GetMessage() { return LastErrorMessage; } |
|
36 TInt GetCode() { return iLastError; } |
|
37 |
|
38 private: |
|
39 /** ret value of last call */ |
|
40 TInt iLastError; |
|
41 /** associated message if any */ |
|
42 TPtrC LastErrorMessage; |
|
43 }; |
|
44 |
|
45 #endif |
|
46 |