Package org.exolab.adaptx.xslt
Class XSLException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.exolab.adaptx.xslt.XSLException
-
- All Implemented Interfaces:
java.io.Serializable
public class XSLException extends java.lang.ExceptionThe main exception thrown during XSLT processing- Author:
- Keith Visco
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]errorMessagesstatic intINVALID_ATTRIBUTE_VALUE_TEMPLATEstatic intINVALID_CHILD_NODEstatic intINVALID_MATCH_PATTERNstatic intINVALID_RULEstatic intINVALID_SELECT_PATTERNstatic intINVALID_XSL_ELEMENTstatic intMISSING_REQUIRED_ATTR
-
Constructor Summary
Constructors Constructor Description XSLException(int error, java.lang.String message)Creates a new XSLExceptionXSLException(java.lang.Exception exception)Creates a new XSLException with the given nested exception.XSLException(java.lang.String message)Creates a new XSLExceptionXSLException(java.lang.String message, java.lang.Exception exception)Creates a new XSLException with the given message and nested exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ExceptiongetException()Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.java.lang.StringgetMessage()Returns the error message for this ExceptionvoidprintStackTrace()voidprintStackTrace(java.io.PrintStream printer)voidprintStackTrace(java.io.PrintWriter printer)java.lang.StringtoString()Returns the String representation of this Exception
-
-
-
Field Detail
-
INVALID_CHILD_NODE
public static final int INVALID_CHILD_NODE
- See Also:
- Constant Field Values
-
INVALID_RULE
public static final int INVALID_RULE
- See Also:
- Constant Field Values
-
INVALID_MATCH_PATTERN
public static final int INVALID_MATCH_PATTERN
- See Also:
- Constant Field Values
-
INVALID_SELECT_PATTERN
public static final int INVALID_SELECT_PATTERN
- See Also:
- Constant Field Values
-
INVALID_XSL_ELEMENT
public static final int INVALID_XSL_ELEMENT
- See Also:
- Constant Field Values
-
INVALID_ATTRIBUTE_VALUE_TEMPLATE
public static final int INVALID_ATTRIBUTE_VALUE_TEMPLATE
- See Also:
- Constant Field Values
-
MISSING_REQUIRED_ATTR
public static final int MISSING_REQUIRED_ATTR
- See Also:
- Constant Field Values
-
errorMessages
public static java.lang.String[] errorMessages
-
-
Constructor Detail
-
XSLException
public XSLException(java.lang.String message)
Creates a new XSLException- Parameters:
message- the error message for this exception
-
XSLException
public XSLException(int error, java.lang.String message)Creates a new XSLException- Parameters:
error- the error code of this exceptionmessage- the error message for this exception
-
XSLException
public XSLException(java.lang.Exception exception)
Creates a new XSLException with the given nested exception.- Parameters:
exception- the nested exception
-
XSLException
public XSLException(java.lang.String message, java.lang.Exception exception)Creates a new XSLException with the given message and nested exception.- Parameters:
message- the detail message for this exceptionexception- the nested exception
-
-
Method Detail
-
getException
public java.lang.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 java.lang.String getMessage()
Returns the error message for this Exception- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- the error message
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTracein classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter printer)
- Overrides:
printStackTracein classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream printer)
- Overrides:
printStackTracein classjava.lang.Throwable
-
toString
public java.lang.String toString()
Returns the String representation of this Exception- Overrides:
toStringin classjava.lang.Throwable- Returns:
- the String representation of this Exception
-
-