Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

XSLException.hpp

Go to the documentation of this file.
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(XSLEXCEPTION_HEADER_GUARD_1357924680)
00017 #define XSLEXCEPTION_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 // Base include file.  Must be first.
00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp>
00023 
00024 
00025 
00026 #include <xalanc/PlatformSupport/DOMStringHelper.hpp>
00027 #include <xalanc/PlatformSupport/XalanLocator.hpp>
00028 
00029 
00030 
00031 XALAN_CPP_NAMESPACE_BEGIN
00032 
00033 
00034 
00035 typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator  LocatorType;
00036 
00037 
00038 
00039 class XALAN_PLATFORMSUPPORT_EXPORT XSLException
00040 {
00041 public:
00042 
00043     typedef XalanLocator::size_type                 size_type;
00044 
00054     XSLException(
00055             const XalanDOMString&   theMessage,
00056             const XalanDOMString&   theURI,
00057             int                     theLineNumber,
00058             int                     theColumnNumber,
00059             const XalanDOMString&   theType = XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
00060 
00068     XSLException(
00069             const LocatorType&      theLocator,
00070             const XalanDOMString&   theMessage,
00071             const XalanDOMString&   theType = XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
00072 
00079     XSLException(
00080             const XalanDOMString&   theMessage,
00081             const XalanDOMString&   theType = XalanDOMString(XALAN_STATIC_UCODE_STRING("XSLException")));
00082 
00083     virtual
00084     ~XSLException();
00085 
00091     const XalanDOMString&
00092     getType() const
00093     {
00094         return m_type;
00095     }
00096 
00102     const XalanDOMString&
00103     getMessage() const
00104     {
00105         return m_message;
00106     }
00107 
00113     const XalanDOMString&
00114     getURI() const
00115     {
00116         return m_uri;
00117     }
00118 
00124     size_type
00125     getLineNumber() const
00126     {
00127         return m_lineNumber;
00128     }
00129 
00135     size_type
00136     getColumnNumber() const
00137     {
00138         return m_columnNumber;
00139     }
00140 
00141     XalanDOMString
00142     defaultFormat() const;
00143 
00144     void
00145     defaultFormat(XalanDOMString&   theBuffer) const;
00146 
00147     static void
00148     defaultFormat(
00149             const XalanDOMString&   theMessage,
00150             const XalanDOMString&   theURI,
00151             size_type               theLineNumber,
00152             size_type               theColumnNumber,
00153             const XalanDOMString&   theType,
00154             XalanDOMString&         theBuffer)
00155     {
00156         defaultFormat(
00157             theMessage.c_str(),
00158             theMessage.size(),
00159             theURI.c_str(),
00160             theURI.size(),
00161             theLineNumber,
00162             theColumnNumber,
00163             theType.c_str(),
00164             theType.size(),
00165             theBuffer);
00166     }
00167 
00168     static void
00169     defaultFormat(
00170             const XalanDOMChar*                 theMessage,
00171             const XalanDOMChar*                 theURI,
00172             size_type                           theLineNumber,
00173             size_type                           theColumnNumber,
00174             const XalanDOMChar*                 theType,
00175             XalanDOMString&                     theBuffer)
00176     {
00177         assert(theMessage != 0 && theURI != 0 && theType != 0);
00178 
00179         defaultFormat(
00180             theMessage,
00181             XalanDOMString::length(theMessage),
00182             theURI,
00183             XalanDOMString::length(theURI),
00184             theLineNumber,
00185             theColumnNumber,
00186             theType,
00187             XalanDOMString::length(theType),
00188             theBuffer);
00189     }
00190 
00191     static void
00192     defaultFormat(
00193             const XalanDOMChar*                 theMessage,
00194             const XalanDOMString::size_type     theMessageLength,
00195             const XalanDOMChar*                 theURI,
00196             const XalanDOMString::size_type     theURILength,
00197             size_type                           theLineNumber,
00198             size_type                           theColumnNumber,
00199             const XalanDOMChar*                 theType,
00200             const XalanDOMString::size_type     theTypeLength,
00201             XalanDOMString&                     theBuffer);
00202 
00203 private:
00204     
00205     const XalanDOMString    m_message;
00206     const XalanDOMString    m_uri;
00207 
00208     const size_type         m_lineNumber;
00209     const size_type         m_columnNumber;
00210 
00211     const XalanDOMString    m_type;
00212 };
00213 
00214 
00215 
00216 XALAN_CPP_NAMESPACE_END
00217 
00218 
00219 
00220 #endif  // XSLEXCEPTION_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.