networkprotocolmodules/common/suplrrlpasn1/inc/suplasn1error.h
branchGCC_SURGE
changeset 49 5f20f71a57a3
parent 41 ec40843d536a
parent 45 15a2125aa2f3
equal deleted inserted replaced
41:ec40843d536a 49:5f20f71a57a3
     1 // Copyright (c) 2008-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  @internalTechnology
       
    19  
       
    20 */
       
    21 #ifndef SUPL_ASN1_ERROR_H
       
    22 #define SUPL_ASN1_ERROR_H
       
    23 
       
    24 /** TSuplAsn1Error typedef.
       
    25 @internalTechnology
       
    26 */
       
    27 typedef TUint32 TSuplAsn1Error;
       
    28 
       
    29 /**
       
    30 Error codes that may be returned during ASN1 operations
       
    31 
       
    32 Note that positive error codes in the region 0 < err < KLbsAsn1ErrorBase
       
    33 are errors returned by calls to the encode/decode operations, and represent
       
    34 failure to encode/decode the ASN1 stream as indicated by the error codes
       
    35 described in rtxErrCodes.h and asn1ErrCodes.h. Note that these error codes
       
    36 are negated (made positive) before return to calling code to differentiate 
       
    37 them from standard Symbian error codes.
       
    38 
       
    39 The exception to the above is when a memory allocation has failed, in this
       
    40 case the standard Symbian error code KErrNoMemory is returned.
       
    41 
       
    42 @see rtxErrCodes.h
       
    43 @see asn1ErrCodes.h
       
    44 
       
    45 @internalTechnology
       
    46 */
       
    47 enum _TSuplAsn1Error
       
    48 	{
       
    49 		/** Not used */
       
    50 	ESuplAsn1ErrBase 				  	   = 1000,
       
    51 		/** A SUPL message that is not supported by this implementation */
       
    52 	ESuplAsn1ErrUnsupportedSuplMessage     = 1001,
       
    53 		/** A pos payload of a protocol that is not supported by this implementation */
       
    54 	ESuplAsn1ErrUnsupportedPosProtocol     = 1002,
       
    55 		/** A pos payload message type that is not supported by this implementation */
       
    56 	ESuplAsn1ErrUnsupportedPosMessageType  = 1003
       
    57 	};
       
    58 
       
    59 #endif // SUPL_ASN1_ERROR_H
       
    60