public class HPSFRuntimeException extends RuntimeException
This exception is the superclass of all other unchecked exceptions thrown in this package. It supports a nested "reason" throwable, i.e. an exception that caused this one to be thrown.
Modifier and Type | Field and Description |
---|---|
private Throwable |
reason
The underlying reason for this exception - may be
null . |
Constructor and Description |
---|
HPSFRuntimeException()
Creates a new
HPSFRuntimeException . |
HPSFRuntimeException(String msg)
Creates a new
HPSFRuntimeException with a message
string. |
HPSFRuntimeException(String msg,
Throwable reason)
Creates a new
HPSFRuntimeException with a message
string and a reason. |
HPSFRuntimeException(Throwable reason)
Creates a new
HPSFRuntimeException with a
reason. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getReason()
|
void |
printStackTrace() |
void |
printStackTrace(PrintStream p) |
void |
printStackTrace(PrintWriter p) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
private Throwable reason
The underlying reason for this exception - may be
null
.
public HPSFRuntimeException()
Creates a new HPSFRuntimeException
.
public HPSFRuntimeException(String msg)
Creates a new HPSFRuntimeException
with a message
string.
msg
- The message string.public HPSFRuntimeException(Throwable reason)
Creates a new HPSFRuntimeException
with a
reason.
reason
- The reason, i.e. a throwable that indirectly
caused this exception.public HPSFRuntimeException(String msg, Throwable reason)
Creates a new HPSFRuntimeException
with a message
string and a reason.
msg
- The message string.reason
- The reason, i.e. a throwable that indirectly
caused this exception.public Throwable getReason()
Returns the Throwable
that caused this exception to
be thrown or null
if there was no such Throwable
.
public void printStackTrace()
printStackTrace
in class Throwable
Throwable.printStackTrace()
public void printStackTrace(PrintStream p)
printStackTrace
in class Throwable
Throwable.printStackTrace(java.io.PrintStream)
public void printStackTrace(PrintWriter p)
printStackTrace
in class Throwable
Throwable.printStackTrace(java.io.PrintWriter)
Copyright © 2016 Open Microscopy Environment