Xalan-C++ API Reference 1.12.0
xalanc::XSLException Class Referenceabstract

#include <xalanc/PlatformSupport/XSLException.hpp>

Inheritance diagram for xalanc::XSLException:
[legend]

Public Member Functions

 XSLException (const XalanDOMString &theMessage, MemoryManager &theManager, const Locator *theLocator)
 Constructor.
 XSLException (const XalanDOMString &theMessage, MemoryManager &theManager)
 Constructor.
 XSLException (const XSLException &other)
virtual ~XSLException ()
virtual const XalanDOMChar * getType () const =0
 Retrieve type of exception.
const XalanDOMStringgetMessage () const
 Retrieve message for exception.
const XalanDOMStringgetURI () const
 Get the URI for the associated document, if any.
XalanFileLoc getLineNumber () const
 Retrieve the line number.
XalanFileLoc getColumnNumber () const
 Retrieve the column number.
const MemoryManager & getMemoryManager () const
MemoryManager & getMemoryManager ()
XalanDOMStringdefaultFormat (XalanDOMString &theBuffer) const

Static Public Member Functions

static XalanDOMStringdefaultFormat (const XalanDOMString &theMessage, const XalanDOMString &theURI, XalanFileLoc theLineNumber, XalanFileLoc theColumnNumber, const XalanDOMChar *theType, XalanDOMString &theBuffer)
static XalanDOMStringdefaultFormat (const XalanDOMChar *theMessage, const XalanDOMChar *theURI, XalanFileLoc theLineNumber, XalanFileLoc theColumnNumber, const XalanDOMChar *theType, XalanDOMString &theBuffer)
static XalanDOMStringdefaultFormat (const XalanDOMChar *theMessage, const XalanDOMString::size_type theMessageLength, const XalanDOMChar *theURI, const XalanDOMString::size_type theURILength, XalanFileLoc theLineNumber, XalanFileLoc theColumnNumber, const XalanDOMChar *theType, const XalanDOMString::size_type theTypeLength, XalanDOMString &theBuffer)

Protected Attributes

MemoryManager & m_memoryManager

Detailed Description

Definition at line 42 of file XSLException.hpp.

Constructor & Destructor Documentation

◆ XSLException() [1/3]

xalanc::XSLException::XSLException ( const XalanDOMString & theMessage,
MemoryManager & theManager,
const Locator * theLocator )

Constructor.

Parameters
theMessageThe message to display when exception thrown
theManagerThe MemoryManager instance to use.
theLocatorThe locator instance for error reporting, if any.

Referenced by XSLException().

◆ XSLException() [2/3]

xalanc::XSLException::XSLException ( const XalanDOMString & theMessage,
MemoryManager & theManager )

Constructor.

Use this constructor when the message has already been formatted.

Parameters
theMessageThe message to display when exception thrown
theManagerThe MemoryManager instance to use.

◆ XSLException() [3/3]

xalanc::XSLException::XSLException ( const XSLException & other)

References XSLException().

◆ ~XSLException()

virtual xalanc::XSLException::~XSLException ( )
virtual

Member Function Documentation

◆ defaultFormat() [1/4]

XalanDOMString & xalanc::XSLException::defaultFormat ( const XalanDOMChar * theMessage,
const XalanDOMChar * theURI,
XalanFileLoc theLineNumber,
XalanFileLoc theColumnNumber,
const XalanDOMChar * theType,
XalanDOMString & theBuffer )
inlinestatic

Definition at line 163 of file XSLException.hpp.

References defaultFormat(), and xalanc::XalanDOMString::length().

◆ defaultFormat() [2/4]

XalanDOMString & xalanc::XSLException::defaultFormat ( const XalanDOMChar * theMessage,
const XalanDOMString::size_type theMessageLength,
const XalanDOMChar * theURI,
const XalanDOMString::size_type theURILength,
XalanFileLoc theLineNumber,
XalanFileLoc theColumnNumber,
const XalanDOMChar * theType,
const XalanDOMString::size_type theTypeLength,
XalanDOMString & theBuffer )
static

◆ defaultFormat() [3/4]

XalanDOMString & xalanc::XSLException::defaultFormat ( const XalanDOMString & theMessage,
const XalanDOMString & theURI,
XalanFileLoc theLineNumber,
XalanFileLoc theColumnNumber,
const XalanDOMChar * theType,
XalanDOMString & theBuffer )
inlinestatic

◆ defaultFormat() [4/4]

XalanDOMString & xalanc::XSLException::defaultFormat ( XalanDOMString & theBuffer) const

Referenced by defaultFormat(), and defaultFormat().

◆ getColumnNumber()

XalanFileLoc xalanc::XSLException::getColumnNumber ( ) const
inline

Retrieve the column number.

Returns
the column number

Definition at line 121 of file XSLException.hpp.

◆ getLineNumber()

XalanFileLoc xalanc::XSLException::getLineNumber ( ) const
inline

Retrieve the line number.

Returns
the line number

Definition at line 110 of file XSLException.hpp.

◆ getMemoryManager() [1/2]

MemoryManager & xalanc::XSLException::getMemoryManager ( )
inline

Definition at line 133 of file XSLException.hpp.

References m_memoryManager.

◆ getMemoryManager() [2/2]

const MemoryManager & xalanc::XSLException::getMemoryManager ( ) const
inline

Definition at line 127 of file XSLException.hpp.

References m_memoryManager.

◆ getMessage()

const XalanDOMString & xalanc::XSLException::getMessage ( ) const
inline

Retrieve message for exception.

Returns
exception message

Definition at line 88 of file XSLException.hpp.

◆ getType()

◆ getURI()

const XalanDOMString & xalanc::XSLException::getURI ( ) const
inline

Get the URI for the associated document, if any.

Returns
The URI.

Definition at line 99 of file XSLException.hpp.

Member Data Documentation

◆ m_memoryManager

MemoryManager& xalanc::XSLException::m_memoryManager
protected

The documentation for this class was generated from the following file: