org.exolab.adaptx.xslt

Class XSLException


public class XSLException
extends Exception

The main exception thrown during XSLT processing
Author:
Keith Visco

Field Summary

static int
INVALID_ATTRIBUTE_VALUE_TEMPLATE
static int
INVALID_CHILD_NODE
static int
INVALID_MATCH_PATTERN
static int
INVALID_RULE
static int
INVALID_SELECT_PATTERN
static int
INVALID_XSL_ELEMENT
static int
MISSING_REQUIRED_ATTR
static String[]
errorMessages

Constructor Summary

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

Method Summary

Exception
getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
String
getMessage()
Returns the error message for this Exception
void
printStackTrace()
void
printStackTrace(PrintStream printer)
void
printStackTrace(PrintWriter printer)
String
toString()
Returns the String representation of this Exception

Field Details

INVALID_ATTRIBUTE_VALUE_TEMPLATE

public static final int INVALID_ATTRIBUTE_VALUE_TEMPLATE
Field Value:
5

INVALID_CHILD_NODE

public static final int INVALID_CHILD_NODE
Field Value:
0

INVALID_MATCH_PATTERN

public static final int INVALID_MATCH_PATTERN
Field Value:
2

INVALID_RULE

public static final int INVALID_RULE
Field Value:
1

INVALID_SELECT_PATTERN

public static final int INVALID_SELECT_PATTERN
Field Value:
3

INVALID_XSL_ELEMENT

public static final int INVALID_XSL_ELEMENT
Field Value:
4

MISSING_REQUIRED_ATTR

public static final int MISSING_REQUIRED_ATTR
Field Value:
6

errorMessages

public static String[] errorMessages

Constructor Details

XSLException

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

XSLException

public XSLException(String message)
Creates a new XSLException
Parameters:
message - the error message for this 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

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

Method Details

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(PrintStream printer)

printStackTrace

public void printStackTrace(PrintWriter printer)

toString

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