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