Class InstallException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.install.tools.configurator.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 Summary
Constructors Constructor Description InstallException(LocalizedMessage localizedMessage)
This constructor takes a message indicating the nature of the failure.InstallException(LocalizedMessage localizedMessage, Exception e)
This constructor takes a message indicating the nature of failure, along with the exception that originally caused the failure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getInnerException()
Returns the exception that was supplied to the constructor at the time when this exception was created.String
getMessage()
Returns the message that was supplied to the constructor at the time when this exception was created.void
printStackTrace(PrintStream pstream)
Prints the stack trace of this exception to the specifiedPrintStream
.void
printStackTrace(PrintWriter err)
Prints the stack trace of this exception to the specifiedPrintWriter
.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
-
-
-
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 classThrowable
- Returns:
- The message string.
-
printStackTrace
public void printStackTrace(PrintWriter err)
Prints the stack trace of this exception to the specifiedPrintWriter
.- Overrides:
printStackTrace
in classThrowable
- Parameters:
err
- ThePrintWriter
to which the stack trace will be written.
-
printStackTrace
public void printStackTrace(PrintStream pstream)
Prints the stack trace of this exception to the specifiedPrintStream
.- Overrides:
printStackTrace
in classThrowable
- Parameters:
pstream
- ThePrintStream
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.
-
-