1 // Copyright (c) 2005-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
24 This file contains details of all OBEX and OBEX Transport panics which may be raised
25 as a result programming error by the users of OBEX (e.g. Client or Server Application
26 or a proprietry transport controller).
28 Internal panic codes should not be raised due to user errors but would reflect
29 internal Obex programming errors - see inc/obexfaults.h
34 Category for Obex panics
37 _LIT(KObexPanicCategory, "Obex");
43 All Obex panics which may be raised as a result of a client (i.e. external) programming error.
44 Internal Obex panics are errors listed in TObexFaultCode
49 /** A NULL value was supplied for the data buffer. Note that this
50 pointer can refer to either a memory buffer or a pointer to a RFile object.
56 /** The supplied buffer is of zero length.
62 /** The header is not of the requested type.
68 /** An unknown TFileBuffering value was supplied.
71 EInvalidBufferStrategy = 3,
74 /** The RFile object does not point to a valid (open) file.
80 /** An unknown TObexBufferingDetails object was supplied to a buffer object.
83 EInvalidBufferDetails = 5,
86 /** A call has been made to CObexServer::RequestIndicationCallback when no
87 asynchronous request is outstanding.
91 ENoNotificationToComplete = 6,
94 /** A call has been made to CObexServer::Start when an asynchronous request
99 EChangeInterfaceDuringWait = 7,
103 /** An invalid packet process event has been signalled.
105 EBadPacketProcessEvent = 8,
108 /** An event is available for signalling, but there is no observer set.
110 ENoPacketProcessObserverSet = 9,
112 /** In CObexServer, a call has been made to RequestCompleteIndicationCallback(TObexResponse)
113 or RequestIndicationCallback(TObexResponse) with invalid response code or
114 RequestCompleteIndicationCallback(TInt) with invalid Symbian error code
116 EInvalidResponseCodeFromServerApp = 10,
118 /** In CObexServer, RequestCompleteIndicationCallback has been called in response to Put/GetRequestIndication
119 or ReuqestIndicationCallback has been called in response to Put/GetComplete or SetPath Indication
121 EInvalidResponseCallback = 11,
123 /** The last server response code has been requested prior to a response from the server.
125 ENoResponseCodeToReturn = 12,
127 /** Adding End of Body header when there is data in the object.
129 EAddingInvalidEoBHeader = 13,
131 /** A user has requested to override the handling of a request
132 packet at an invalid time.
134 EOverrideRequestHandlingInBadState = 14,
140 The category for obex transport panics
142 _LIT(KObexTransportPanicCat, "ObexTransPanics");
145 Obex transport panics raised as a result of client programming error
147 enum TObexTransportPanicCode
150 The number of transport implementations for a given transport name is more than what is allowed.
151 Check that there is not more than the allowed number of plugin resource files containing the same default
152 data and inteface uid.
154 EInvalidNumberOfTransportImplementations = 0,