Class XSLException

  • All Implemented Interfaces:
    java.io.Serializable

    public class XSLException
    extends java.lang.Exception
    The main exception thrown during XSLT processing
    Author:
    Keith Visco
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      XSLException​(int error, java.lang.String message)
      Creates a new XSLException
      XSLException​(java.lang.Exception exception)
      Creates a new XSLException with the given nested exception.
      XSLException​(java.lang.String message)
      Creates a new XSLException
      XSLException​(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.Exception getException()
      Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
      java.lang.String getMessage()
      Returns the error message for this Exception
      void printStackTrace()  
      void printStackTrace​(java.io.PrintStream printer)  
      void printStackTrace​(java.io.PrintWriter printer)  
      java.lang.String toString()
      Returns the String representation of this Exception
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 exception
        message - 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 exception
        exception - 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:
        getMessage in class java.lang.Throwable
        Returns:
        the error message
      • printStackTrace

        public void printStackTrace()
        Overrides:
        printStackTrace in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace​(java.io.PrintWriter printer)
        Overrides:
        printStackTrace in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace​(java.io.PrintStream printer)
        Overrides:
        printStackTrace in class java.lang.Throwable
      • toString

        public java.lang.String toString()
        Returns the String representation of this Exception
        Overrides:
        toString in class java.lang.Throwable
        Returns:
        the String representation of this Exception