epoc32/include/wapmsgerr.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@2
     4
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     5
// which accompanies this distribution, and is available
williamr@2
     6
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
//
williamr@2
    15
williamr@2
    16
#ifndef __WAPMSGERR_H__
williamr@2
    17
#define __WAPMSGERR_H__
williamr@2
    18
williamr@2
    19
#include <e32base.h>
williamr@2
    20
williamr@2
    21
namespace Wap
williamr@2
    22
/** 
williamr@2
    23
* Defines WAP-related types and error codes. 
williamr@2
    24
*/
williamr@2
    25
	{
williamr@2
    26
	_LIT(KWapMsgPanicDescriptor, "WAPMESSAGE");
williamr@2
    27
williamr@2
    28
/** Defines start values for categories of WAP-related error codes. */
williamr@2
    29
enum 
williamr@2
    30
	{
williamr@2
    31
	/** Base value for all error codes. */
williamr@2
    32
	ERetCodeBase      = -5500,
williamr@2
    33
	/** Base value for connection-orientated WSP error codes. */
williamr@2
    34
	EWSPCORetCodeBase = ERetCodeBase + 25,
williamr@2
    35
	/** Base value for connectionless WSP error codes. */
williamr@2
    36
	EWSPCLRetCodeBase = ERetCodeBase + 50,
williamr@2
    37
	/** Base value for WTP error codes. */
williamr@2
    38
	EWTPRetCodeBase   = ERetCodeBase + 75,
williamr@2
    39
	/** Base value for WDP error codes. */
williamr@2
    40
	EWDPRetCodeBase   = ERetCodeBase + 100,
williamr@2
    41
	/** Base value for WTLS error codes. */
williamr@2
    42
	EWTLSRetCodeBase  = ERetCodeBase + 125,
williamr@2
    43
	/** Maximum value for WAP-related error codes. */
williamr@2
    44
	ERetCodeTop       = ERetCodeBase + 200
williamr@2
    45
	};
williamr@2
    46
	
williamr@2
    47
/** General WAP error codes. */
williamr@2
    48
enum TGeneralReturnCodes
williamr@2
    49
	{  
williamr@2
    50
	/** There is more data to be read. */
williamr@2
    51
	EMoreData           = ERetCodeBase + 0,
williamr@2
    52
	/** One of: no bearer set; unknown bearer; a connection exists with different bearer; 
williamr@2
    53
	* unable to get a local host name from bearer. */
williamr@2
    54
	EBearerError        = ERetCodeBase + 1,
williamr@2
    55
	/** The port is already used in another bound connection. */
williamr@2
    56
	EPortAlreadyBound   = ERetCodeBase + 2,
williamr@2
    57
	/** Local port cannot be opened. */
williamr@2
    58
	ECannotOpenPort     = ERetCodeBase + 3,
williamr@2
    59
	/** There are too many existing connections. */
williamr@2
    60
	ETooManyConnections = ERetCodeBase + 4,
williamr@2
    61
	/** Connection handle is invalid. */
williamr@2
    62
	EBadConnection      = ERetCodeBase + 5,
williamr@2
    63
	/** Passed buffer is too small. */
williamr@2
    64
	EBufferTooSmall     = ERetCodeBase + 6
williamr@2
    65
	};
williamr@2
    66
williamr@2
    67
/** WTLS-related error codes. */
williamr@2
    68
enum TWtlsReturnCodes
williamr@2
    69
	{
williamr@2
    70
	/** Out of memory. */
williamr@2
    71
	EWtlsOutOfMemory            = EWTLSRetCodeBase + 0,
williamr@2
    72
	/** Socket error. */
williamr@2
    73
	EWtlsSocketError            = EWTLSRetCodeBase + 1,
williamr@2
    74
	/** Invalid parameter used. */
williamr@2
    75
	EWtlsBadParameters          = EWTLSRetCodeBase + 2,
williamr@2
    76
	/** Socket error. */
williamr@2
    77
	EWtlsSocketError2           = EWTLSRetCodeBase + 3,
williamr@2
    78
	/** Resume ID not found. */
williamr@2
    79
	EWtlsResumeIDNotFound       = EWTLSRetCodeBase + 4,
williamr@2
    80
	/** Resume error. */
williamr@2
    81
	EWtlsResumeError            = EWTLSRetCodeBase + 5,
williamr@2
    82
	/** Renegotiation request error. */
williamr@2
    83
	EWtlsRenegotiationRequest   = EWTLSRetCodeBase + 6,
williamr@2
    84
	/** Illegal call. */
williamr@2
    85
	EWtlsIllegalCall            = EWTLSRetCodeBase + 7,
williamr@2
    86
	/** Connection close notify error. */
williamr@2
    87
	EWtlsConnectionCloseNotify  = EWTLSRetCodeBase + 8,
williamr@2
    88
	/** Close notify error. */
williamr@2
    89
	EWtlsSessionCloseNotify     = EWTLSRetCodeBase + 9,
williamr@2
    90
	/** No connection. */
williamr@2
    91
	EWtlsNoConnection           = EWTLSRetCodeBase + 10,
williamr@2
    92
	/** Unexpected message. */
williamr@2
    93
	EWtlsUnexpectedMessage      = EWTLSRetCodeBase + 11,
williamr@2
    94
	/** Bad MAC record. */
williamr@2
    95
	EWtlsBadRecordMac           = EWTLSRetCodeBase + 12,
williamr@2
    96
	/** Decryption failed. */
williamr@2
    97
	EWtlsDecryptionFailed       = EWTLSRetCodeBase + 13,
williamr@2
    98
	/** Record overflow. */
williamr@2
    99
	EWtlsRecordOverflow         = EWTLSRetCodeBase + 14,
williamr@2
   100
	/** Handshake failure. */
williamr@2
   101
	EWtlsHandshakeFailure       = EWTLSRetCodeBase + 15,
williamr@2
   102
	/** Decompression failure. */
williamr@2
   103
	EWtlsDecompressionFailure   = EWTLSRetCodeBase + 16,
williamr@2
   104
	/** Bad certificate. */
williamr@2
   105
	EWtlsBadCertificate         = EWTLSRetCodeBase + 17,
williamr@2
   106
	/** Unsupported certificate. */
williamr@2
   107
	EWtlsUnsupportedCertificate = EWTLSRetCodeBase + 18,
williamr@2
   108
	/** Certificate revoked. */
williamr@2
   109
	EWtlsCertificateRevoked     = EWTLSRetCodeBase + 19,
williamr@2
   110
	/** Certificate expired. */
williamr@2
   111
	EWtlsCertificateExpired     = EWTLSRetCodeBase + 20,
williamr@2
   112
	/** Certificate unknown. */
williamr@2
   113
	EWtlsCertificateUnknown     = EWTLSRetCodeBase + 21,
williamr@2
   114
	/** Illegal parameter. */
williamr@2
   115
	EWtlsIllegalParameter       = EWTLSRetCodeBase + 22,
williamr@2
   116
	/** Unknown certificate authority. */
williamr@2
   117
	EWtlsUnknownCA              = EWTLSRetCodeBase + 23,
williamr@2
   118
	/** Access denied. */
williamr@2
   119
	EWtlsAccessDenied           = EWTLSRetCodeBase + 24,
williamr@2
   120
	/** Decoding error. */
williamr@2
   121
	EWtlsDecodeError            = EWTLSRetCodeBase + 25,
williamr@2
   122
	/** Decryption error. */
williamr@2
   123
	EWtlsDecryptError           = EWTLSRetCodeBase + 26,
williamr@2
   124
	/** Unknown key ID. */
williamr@2
   125
	EWtlsUnknownKeyId           = EWTLSRetCodeBase + 27,
williamr@2
   126
	/** Disabled key ID. */
williamr@2
   127
	EWtlsDisableKeyId           = EWTLSRetCodeBase + 28,
williamr@2
   128
	/** Key exchange disabled. */
williamr@2
   129
	EWtlsKeyExchangeDisabled    = EWTLSRetCodeBase + 29,
williamr@2
   130
	/** Session not ready. */
williamr@2
   131
	EWtlsSessionNotReady        = EWTLSRetCodeBase + 30,
williamr@2
   132
	/** Unknown parameter index. */
williamr@2
   133
	EWtlsUnknownParameterIndex  = EWTLSRetCodeBase + 31,
williamr@2
   134
	/** Duplicate finished Recv() call. */
williamr@2
   135
	EWtlsDuplicateFinishedRecv  = EWTLSRetCodeBase + 32,
williamr@2
   136
	/** Export restriction error. */
williamr@2
   137
	EWtlsExportRestriction      = EWTLSRetCodeBase + 33,
williamr@2
   138
	/** Protocol version error. */
williamr@2
   139
	EWtlsProtocolVersion        = EWTLSRetCodeBase + 34,
williamr@2
   140
	/** Insufficient security. */
williamr@2
   141
	EWtlsInsufficientSecurity   = EWTLSRetCodeBase + 35,
williamr@2
   142
	/** Internal error. */
williamr@2
   143
	EWtlsInternalError          = EWTLSRetCodeBase + 36,
williamr@2
   144
	/** User cancelled operation. */
williamr@2
   145
	EWtlsUserCanceled           = EWTLSRetCodeBase + 37,
williamr@2
   146
	/** No renegotiation. */
williamr@2
   147
	EWtlsNoRenegotiation        = EWTLSRetCodeBase + 38,
williamr@2
   148
williamr@2
   149
	/** General error. */
williamr@2
   150
	EWtlsErrGeneral             = EWTLSRetCodeBase + 39,
williamr@2
   151
	/** Bulk algorithm error. */
williamr@2
   152
	EWtlsErrBulk                = EWTLSRetCodeBase + 40,
williamr@2
   153
	/** MAC algorithm error. */
williamr@2
   154
	EWtlsErrMac                 = EWTLSRetCodeBase + 41,
williamr@2
   155
	/** Sequence number mode error. */
williamr@2
   156
	EWtlsErrSequenceNumberMode  = EWTLSRetCodeBase + 42,
williamr@2
   157
	/** Key refresh rate error. */
williamr@2
   158
	EWtlsErrKeyRefreshRate      = EWTLSRetCodeBase + 43,
williamr@2
   159
williamr@2
   160
	};
williamr@2
   161
williamr@2
   162
/** Connection-orientated WSP error codes. */
williamr@2
   163
enum TWspCoReturnCodes
williamr@2
   164
	{
williamr@2
   165
	/** Given buffer is too small. */
williamr@2
   166
	EWspCoBufferTooSmall      = EWSPCORetCodeBase + 0,
williamr@2
   167
	/** Session handle is not valid. */
williamr@2
   168
	EWspCoInvalidSession      = EWSPCORetCodeBase + 1,
williamr@2
   169
	/** Invalid transaction. */
williamr@2
   170
	EWspCoInvalidTransaction  = EWSPCORetCodeBase + 2,
williamr@2
   171
	/** Given parameter is invalid. */
williamr@2
   172
	EWspCoParameterError      = EWSPCORetCodeBase + 3,
williamr@2
   173
	/** Session is not connected. */
williamr@2
   174
	EWspCoSessionNotConnected = EWSPCORetCodeBase + 4,
williamr@2
   175
	/** Functionality is not supported in this session. */
williamr@2
   176
	EWspCoNotSupported        = EWSPCORetCodeBase + 5,
williamr@2
   177
	/** Function is not applicable in this state of an object. */
williamr@2
   178
	EWspCoInvalidState        = EWSPCORetCodeBase + 6,
williamr@2
   179
	/** Session has been closed. */
williamr@2
   180
	EWspCoSessionClosed       = EWSPCORetCodeBase + 7,
williamr@2
   181
	/** Server MRU exceeded. */
williamr@2
   182
	EWspCoMRUExceeded         = EWSPCORetCodeBase + 8,
williamr@2
   183
	/** Invalid buffer size. */
williamr@2
   184
	EWspCoInvalidBufferSize   = EWSPCORetCodeBase + 9,
williamr@2
   185
	/** Data not available. */
williamr@2
   186
	EWspCoDataNotAvailable    = EWSPCORetCodeBase + 10,
williamr@2
   187
	/** Timeout error. */
williamr@2
   188
	EWspCoErrorTimeout        = EWSPCORetCodeBase + 11
williamr@2
   189
	};
williamr@2
   190
	
williamr@2
   191
williamr@2
   192
/** Connectionless WSP error codes. */
williamr@2
   193
enum TWspClReturnCodes
williamr@2
   194
	{			
williamr@2
   195
	/** Given buffer is too small. */
williamr@2
   196
	EWspClBufferTooSmall      = EWSPCLRetCodeBase + 0,
williamr@2
   197
	/** Session handle is not valid. */
williamr@2
   198
	EWspClInvalidSession      = EWSPCLRetCodeBase + 1,
williamr@2
   199
	/** Given parameter is invalid. */
williamr@2
   200
	EWspClParameterError      = EWSPCLRetCodeBase + 2,
williamr@2
   201
	/** Session is not connected. */
williamr@2
   202
	EWspClSessionNotConnected = EWSPCLRetCodeBase + 3,
williamr@2
   203
	/** Functionality is not supported in this session. */
williamr@2
   204
	EWspClNotSupported        = EWSPCLRetCodeBase + 4,
williamr@2
   205
	/** Function is not applicable in this state of an object. */
williamr@2
   206
	EWspClInvalidState        = EWSPCLRetCodeBase + 5,
williamr@2
   207
	/** Session has been closed. */
williamr@2
   208
	EWspClSessionClosed       = EWSPCLRetCodeBase + 6,
williamr@2
   209
	/** Server MRU exceeded. */
williamr@2
   210
	EWspClMRUExceeded		 = EWSPCLRetCodeBase + 7,	
williamr@2
   211
	/** Invalid buffer size. */
williamr@2
   212
	EWspClInvalidBufferSize   = EWSPCLRetCodeBase + 8,
williamr@2
   213
	/** Data not available. */
williamr@2
   214
	EWspClDataNotAvailable    = EWSPCLRetCodeBase + 9,
williamr@2
   215
	/** Timeout error. */
williamr@2
   216
	EWspClErrorTimeout        = EWSPCLRetCodeBase + 10
williamr@2
   217
	};
williamr@2
   218
williamr@2
   219
/** WTP-related error codes. */
williamr@2
   220
enum TWtpReturnCodes
williamr@2
   221
	{
williamr@2
   222
	/** Out of memory. */
williamr@2
   223
	EWtpNoMemory                 = EWTPRetCodeBase + 0,
williamr@2
   224
	/** Invalid argument. */
williamr@2
   225
	EWtpBadArgument              = EWTPRetCodeBase + 1,
williamr@2
   226
	/** Provider aborted. */
williamr@2
   227
	EWtpProviderProtoErr         = EWTPRetCodeBase + 2,
williamr@2
   228
	/** Provider aborted. */
williamr@2
   229
	EWtpProviderAbortInvalidTID  = EWTPRetCodeBase + 3,
williamr@2
   230
	/** Provider aborted. */
williamr@2
   231
	EWtpProviderAbortNoClass2    = EWTPRetCodeBase + 4,
williamr@2
   232
	/** Provider aborted. */
williamr@2
   233
	EWtpProviderAbortNoSAR       = EWTPRetCodeBase + 5,
williamr@2
   234
	/** Provider aborted. */
williamr@2
   235
	EWtpProviderAbortNoUACK      = EWTPRetCodeBase + 6,
williamr@2
   236
	/** Provider aborted. */
williamr@2
   237
	EWtpProviderAbortVers1       = EWTPRetCodeBase + 7,
williamr@2
   238
	/** Provider aborted. */
williamr@2
   239
	EWtpProviderAbortNoResponse  = EWTPRetCodeBase + 8,
williamr@2
   240
	/** Provider aborted. */
williamr@2
   241
	EWtpProviderAbortMsgTooLarge = EWTPRetCodeBase + 9,
williamr@2
   242
	/** Provider aborted. */
williamr@2
   243
	EWtpProviderAbortGeneral     = EWTPRetCodeBase + 10,
williamr@2
   244
	/** Service has shutdown. */
williamr@2
   245
	EWtpShutdownError            = EWTPRetCodeBase + 11
williamr@2
   246
	};
williamr@2
   247
}
williamr@2
   248
williamr@2
   249
#endif // __WAPMSGERR_H__