org.exolab.adaptx.xslt

Class XSLException

public class XSLException extends Exception

The main exception thrown during XSLT processing

Author: Keith Visco

Field Summary
static String[]errorMessages
static intINVALID_ATTRIBUTE_VALUE_TEMPLATE
static intINVALID_CHILD_NODE
static intINVALID_MATCH_PATTERN
static intINVALID_RULE
static intINVALID_SELECT_PATTERN
static intINVALID_XSL_ELEMENT
static intMISSING_REQUIRED_ATTR
Constructor Summary
XSLException(String message)
Creates a new XSLException
XSLException(int error, String message)
Creates a new XSLException
XSLException(Exception exception)
Creates a new XSLException with the given nested exception.
XSLException(String message, Exception exception)
Creates a new XSLException with the given message and nested exception.
Method Summary
ExceptiongetException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
StringgetMessage()
Returns the error message for this Exception
voidprintStackTrace()
voidprintStackTrace(PrintWriter printer)
voidprintStackTrace(PrintStream printer)
StringtoString()
Returns the String representation of this Exception

Field Detail

errorMessages

public static String[] errorMessages

INVALID_ATTRIBUTE_VALUE_TEMPLATE

public static final int INVALID_ATTRIBUTE_VALUE_TEMPLATE

INVALID_CHILD_NODE

public static final int INVALID_CHILD_NODE

INVALID_MATCH_PATTERN

public static final int INVALID_MATCH_PATTERN

INVALID_RULE

public static final int INVALID_RULE

INVALID_SELECT_PATTERN

public static final int INVALID_SELECT_PATTERN

INVALID_XSL_ELEMENT

public static final int INVALID_XSL_ELEMENT

MISSING_REQUIRED_ATTR

public static final int MISSING_REQUIRED_ATTR

Constructor Detail

XSLException

public XSLException(String message)
Creates a new XSLException

Parameters: message the error message for this exception

XSLException

public XSLException(int error, String message)
Creates a new XSLException

Parameters: error the error code of this exception message the error message for this exception

XSLException

public XSLException(Exception exception)
Creates a new XSLException with the given nested exception.

Parameters: exception the nested exception

XSLException

public XSLException(String message, Exception exception)
Creates a new XSLException with the given message and nested exception.

Parameters: message the detail message for this exception exception the nested exception

Method Detail

getException

public Exception getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

Returns: the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

getMessage

public String getMessage()
Returns the error message for this Exception

Returns: the error message

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(PrintWriter printer)

printStackTrace

public void printStackTrace(PrintStream printer)

toString

public String toString()
Returns the String representation of this Exception

Returns: the String representation of this Exception