Xalan-C++ API Reference  1.12.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
xalanc::XSLException Class Referenceabstract

#include <xalanc/PlatformSupport/XSLException.hpp>

Inheritance diagram for xalanc::XSLException:
[legend]
Collaboration diagram for xalanc::XSLException:
[legend]

Public Member Functions

 XSLException (const XalanDOMString &theMessage, MemoryManager &theManager, const Locator *theLocator)
 Constructor. More...
 
 XSLException (const XalanDOMString &theMessage, MemoryManager &theManager)
 Constructor. More...
 
 XSLException (const XSLException &other)
 
virtual ~XSLException ()
 
virtual const XalanDOMChar * getType () const =0
 Retrieve type of exception. More...
 
const XalanDOMStringgetMessage () const
 Retrieve message for exception. More...
 
const XalanDOMStringgetURI () const
 Get the URI for the associated document, if any. More...
 
XalanFileLoc getLineNumber () const
 Retrieve the line number. More...
 
XalanFileLoc getColumnNumber () const
 Retrieve the column number. More...
 
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.

◆ 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)

◆ ~XSLException()

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

Member Function Documentation

◆ defaultFormat() [1/4]

static 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 xalanc::length().

◆ defaultFormat() [2/4]

static 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]

static 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

◆ 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.

◆ getMemoryManager() [2/2]

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

Definition at line 127 of file XSLException.hpp.

◆ getMessage()

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

Retrieve message for exception.

Returns
exception message

Definition at line 88 of file XSLException.hpp.

◆ getType()

virtual const XalanDOMChar* xalanc::XSLException::getType ( ) const
pure virtual

◆ 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

Definition at line 199 of file XSLException.hpp.


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