Class InstallException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    InstallAbortException

    public class InstallException
    extends Exception
    The basic exception type used within the Product Installer to indicate the occurrence of error conditions. It provides the necessary means and functionality to preserve the root cause exception by allowing the chaining of exceptions where needed.
    See Also:
    Serialized Form
    • Constructor Detail

      • InstallException

        public InstallException​(LocalizedMessage localizedMessage,
                                Exception e)
        This constructor takes a message indicating the nature of failure, along with the exception that originally caused the failure.
        Parameters:
        localizedMessage - The message indicating the nature of the failure.
        ex - The exception that originally caused the failure.
      • InstallException

        public InstallException​(LocalizedMessage localizedMessage)
        This constructor takes a message indicating the nature of the failure.
        Parameters:
        msg - The message indicating the nature of the failure.
    • Method Detail

      • getMessage

        public String getMessage()
        Returns the message that was supplied to the constructor at the time when this exception was created.
        Overrides:
        getMessage in class Throwable
        Returns:
        The message string.
      • printStackTrace

        public void printStackTrace​(PrintWriter err)
        Prints the stack trace of this exception to the specified PrintWriter.
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        err - The PrintWriter to which the stack trace will be written.
      • printStackTrace

        public void printStackTrace​(PrintStream pstream)
        Prints the stack trace of this exception to the specified PrintStream.
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        pstream - The PrintStream to which the stack trace will be written.
      • getInnerException

        public Throwable getInnerException()
        Returns the exception that was supplied to the constructor at the time when this exception was created.
        Returns:
        The inner exception.