|
1 /* |
|
2 * Copyright (c) 2002-2006 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 the License "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: Header contain Error codes and their descriptions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SATERRORS_H |
|
21 #define SATERRORS_H |
|
22 |
|
23 // CONSTANTS |
|
24 struct TSatError |
|
25 { |
|
26 const TInt iErrorCode; |
|
27 const TText* iErrorString; |
|
28 }; |
|
29 |
|
30 TSatError const KSatErrorList[] = { |
|
31 { KErrNone, _S( "KErrNone" ) }, |
|
32 { KErrNotFound, _S( "KErrNotFound" ) }, |
|
33 { KErrGeneral, _S( "KErrGeneral" ) }, |
|
34 { KErrCancel, _S( "KErrCancel" ) }, |
|
35 { KErrNotSupported, _S( "KErrNotSupported" ) }, |
|
36 { KErrArgument, _S( "KErrArgument" ) }, |
|
37 { KErrTotalLossOfPrecision, _S( "KErrTotalLossOfPrecision" ) }, |
|
38 { KErrBadHandle, _S( "KErrBadHandle" ) }, |
|
39 { KErrOverflow, _S( "KErrOverflow" ) }, |
|
40 { KErrUnderflow, _S( "KErrUnderflow" ) }, |
|
41 { KErrAlreadyExists, _S( "KErrAlreadyExists" ) }, |
|
42 { KErrPathNotFound, _S( "KErrPathNotFound" ) }, |
|
43 { KErrDied, _S( "KErrDied" ) }, |
|
44 { KErrInUse, _S( "KErrInUse" ) }, |
|
45 { KErrServerTerminated, _S( "KErrServerTerminated" ) }, |
|
46 { KErrServerBusy, _S( "KErrServerBusy" ) }, |
|
47 { KErrCompletion, _S( "KErrCompletion" ) }, |
|
48 { KErrUnknown, _S( "KErrUnknown" ) }, |
|
49 { KErrCorrupt, _S( "KErrCorrupt" ) }, |
|
50 { KErrAccessDenied, _S( "KErrAccessDenied" ) }, |
|
51 { KErrLocked, _S( "KErrLocked" ) }, |
|
52 { KErrWrite, _S( "KErrWrite" ) }, |
|
53 { KErrDisMounted, _S( "KErrDisMounted" ) }, |
|
54 { KErrEof, _S( "KErrEof" ) }, |
|
55 { KErrDiskFull, _S( "KErrDiskFull" ) }, |
|
56 { KErrBadDriver, _S( "KErrBadDriver" ) }, |
|
57 { KErrBadName, _S( "KErrBadName" ) }, |
|
58 { KErrCommsLineFail, _S( "KErrCommsLineFail" ) }, |
|
59 { KErrCommsFrame, _S( "KErrCommsFrame" ) }, |
|
60 { KErrCommsOverrun, _S( "KErrCommsOverrun" ) }, |
|
61 { KErrTimedOut, _S( "KErrTimedOut" ) }, |
|
62 { KErrCouldNotConnect, _S( "KErrCouldNotConnect" ) }, |
|
63 { KErrCouldNotDisconnect, _S( "KErrCouldNotDisconnect" ) }, |
|
64 { KErrDisconnected, _S( "KErrDisconnected" ) }, |
|
65 { KErrBadLibraryEntryPoint, _S( "KErrBadLibraryEntryPoint" ) }, |
|
66 { KErrBadDescriptor, _S( "KErrBadDescriptor" ) }, |
|
67 { KErrAbort, _S( "KErrAbort" ) }, |
|
68 { KErrTooBig, _S( "KErrTooBig" ) }, |
|
69 { KErrDivideByZero, _S( "KErrDivideByZero" ) }, |
|
70 { KErrBadPower, _S( "KErrBadPower" ) }, |
|
71 { KErrDirFull, _S( "KErrDirFull" ) }, |
|
72 { KErrHardwareNotAvailable, _S( "KErrHardwareNotAvailable" ) }, |
|
73 { KErrSessionClosed, _S( "KErrSessionClosed" ) }, |
|
74 { KErrPermissionDenied, _S( "KErrPermissionDenied" ) }, |
|
75 { KErrExtensionNotSupported, _S( "KErrExtensionNotSupported" ) }, |
|
76 { KErrCommsBreak, _S( "KErrCommsBreak" ) }, |
|
77 { KErrAlreadyExists, _S( "KErrAlreadyExists" ) }, |
|
78 { KErrTimedOut, _S( "KErrTimedOut" ) }, |
|
79 { KErrServerTerminated, _S( "KErrServerTerminated" ) }, |
|
80 { -500, _S( "Test case missing" ) }, |
|
81 { -501, _S( "Unexpected event" ) }, |
|
82 { -502, _S( "Channel missing" ) }, |
|
83 { -503, _S( "Unexpected message length" ) }, |
|
84 { -504, _S( "Unexpected message content" ) }, |
|
85 { -505, _S( "Unexpected message direction" ) }, |
|
86 { -506, _S( "Unexpected channel ID" ) }, |
|
87 { -508, _S( "Unexpected element type" ) }, |
|
88 { -509, _S( "Unexpected type attribute value" ) }, |
|
89 { -512, _S( "Invalid ID" ) }, |
|
90 { -1001, _S( "Generic format error" ) }, |
|
91 { -1002, _S( "Generic parse error" ) }, |
|
92 { -1501, _S( "ISC Already Running" ) }, |
|
93 { -1502, _S( "ISC Already Synchronizing" ) }, |
|
94 { -1503, _S( "ISC Test Case Missing" ) } }; |
|
95 |
|
96 const TUint KSatErrorListSize = static_cast<TUint> |
|
97 ( sizeof( KSatErrorList ) / sizeof( TSatError ) ) ; |
|
98 |
|
99 #endif // SATERRORS_H |