xml/xmlfw/inc/XmlFrameworkPanics.h
changeset 0 e35f40988205
equal deleted inserted replaced
-1:000000000000 0:e35f40988205
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 
       
     3 // All rights reserved.
       
     4 
       
     5 // This component and the accompanying materials are made available
       
     6 
       
     7 // under the terms of "Eclipse Public License v1.0"
       
     8 
       
     9 // which accompanies this distribution, and is available
       
    10 
       
    11 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    12 
       
    13 //
       
    14 
       
    15 // Initial Contributors:
       
    16 
       
    17 // Nokia Corporation - initial contribution.
       
    18 
       
    19 //
       
    20 
       
    21 // Contributors:
       
    22 
       
    23 //
       
    24 
       
    25 // Description:
       
    26 
       
    27 //
       
    28 
       
    29 
       
    30 
       
    31 #ifndef XMLFRAMEWORKPANICS_H_
       
    32 
       
    33 #define XMLFRAMEWORKPANICS_H_
       
    34 
       
    35 
       
    36 
       
    37 namespace Xml
       
    38 
       
    39 {
       
    40 
       
    41 
       
    42 
       
    43 
       
    44 
       
    45 // Panic Codes
       
    46 
       
    47 
       
    48 
       
    49 /**
       
    50 
       
    51 Indicates various Panic error conditions within the framework.
       
    52 
       
    53 
       
    54 
       
    55 @internalTechnology
       
    56 
       
    57 */
       
    58 
       
    59 enum TXmlFrameworkPanic
       
    60 
       
    61 	{
       
    62 
       
    63 	/**
       
    64 
       
    65 	Indicates that a leave code other than that expected was received.
       
    66 
       
    67 	*/
       
    68 
       
    69 	EXmlFrameworkPanicUnexpectedLeaveCode		= 0,
       
    70 
       
    71 
       
    72 
       
    73 	/**
       
    74 
       
    75 	Indicates that a state other than that expected was reached.
       
    76 
       
    77 	*/
       
    78 
       
    79 	EXmlFrameworkPanicUnexpectedState			= 1,
       
    80 
       
    81 
       
    82 
       
    83 	/**
       
    84 
       
    85 	Indicates that logic other than that expected was reached.
       
    86 
       
    87 	*/
       
    88 
       
    89 	EXmlFrameworkPanicUnexpectedLogic			= 2,
       
    90 
       
    91 
       
    92 
       
    93 	/**
       
    94 
       
    95 	Indicates that internal document positioning has gone beyond EOF and has failed.
       
    96 
       
    97 	*/
       
    98 
       
    99 	EXmlFrameworkPanicPositionMisallignment		= 3,
       
   100 
       
   101 
       
   102 
       
   103 	/**
       
   104 
       
   105 	Indicates that a reference count has reached a negative value.
       
   106 
       
   107 	*/
       
   108 
       
   109 	EXmlFrameworkPanicReferenceCountNegative	= 4,
       
   110 
       
   111 
       
   112 
       
   113 	/**
       
   114 
       
   115 	Pointer is null, cannot dereference.
       
   116 
       
   117 	*/
       
   118 
       
   119 	EXmlFrameworkPanicNullPointer				= 5,
       
   120 
       
   121 
       
   122 
       
   123 	};
       
   124 
       
   125 
       
   126 
       
   127 /**
       
   128 
       
   129 This method panics the thread
       
   130 
       
   131 
       
   132 
       
   133 @param aError The reason for the panic
       
   134 
       
   135 @internalTechnology
       
   136 
       
   137 */
       
   138 
       
   139 void Panic(TXmlFrameworkPanic aError);
       
   140 
       
   141 
       
   142 
       
   143 }
       
   144 
       
   145 #endif /*XMLFRAMEWORKPANICS_H_*/
       
   146