00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(XALANDOMEXCEPTION_HEADER_GUARD_1357924680) 00017 #define XALANDOMEXCEPTION_HEADER_GUARD_1357924680 00018 00019 00020 00021 #include <xalanc/XalanDOM/XalanDOMDefinitions.hpp> 00022 00023 00024 00025 XALAN_CPP_NAMESPACE_BEGIN 00026 00027 00028 00029 /* 00030 * <meta name="usage" content="experimental"/> 00031 * 00032 * Base class for the DOM Exception interface. 00033 * 00034 * This class is experimental and subject to change!! 00035 */ 00036 00037 class XALAN_DOM_EXPORT XalanDOMException 00038 { 00039 public: 00040 00043 enum ExceptionCode 00044 { 00045 // These are the errors as defined in the W3C DOM recommendation. 00046 INDEX_SIZE_ERR = 1, 00047 DOMSTRING_SIZE_ERR = 2, 00048 HIERARCHY_REQUEST_ERR = 3, 00049 WRONG_DOCUMENT_ERR = 4, 00050 INVALID_CHARACTER_ERR = 5, 00051 NO_DATA_ALLOWED_ERR = 6, 00052 NO_MODIFICATION_ALLOWED_ERR = 7, 00053 NOT_FOUND_ERR = 8, 00054 NOT_SUPPORTED_ERR = 9, 00055 INUSE_ATTRIBUTE_ERR = 10, 00056 INVALID_STATE_ERR = 11, 00057 SYNTAX_ERR = 12, 00058 INVALID_MODIFICATION_ERR = 13, 00059 NAMESPACE_ERR = 14, 00060 INVALID_ACCESS_ERR = 15, 00061 00062 // This is the first available number, 00063 // according to the spec. 00064 UNKNOWN_ERR = 201, 00065 00066 // Indicates that an error occurred transcoding a 00067 // string. 00068 TRANSCODING_ERR = 202 00069 }; 00071 00074 00080 explicit 00081 XalanDOMException(ExceptionCode code = UNKNOWN_ERR); 00082 00088 XalanDOMException(const XalanDOMException& theSource); 00089 00091 00093 00097 virtual 00098 ~XalanDOMException(); 00100 00103 00108 virtual ExceptionCode 00109 getExceptionCode() const; 00110 00111 private: 00112 00113 // Not implemented... 00114 XalanDOMException& 00115 operator=(const XalanDOMException&); 00116 00117 00118 // Data members... 00119 const ExceptionCode m_code; 00120 }; 00121 00122 00123 00124 XALAN_CPP_NAMESPACE_END 00125 00126 00127 00128 #endif // !defined(XALANDOMEXCEPTION_HEADER_GUARD_1357924680)
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.10 |
|