Package loci.poi.hpsf
Class HPSFRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- loci.poi.hpsf.HPSFRuntimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalPropertySetDataException
,MissingSectionException
,NoFormatIDException
,NoSingleSectionException
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.
- Since:
- 2002-02-09
- Version:
- $Id: HPSFRuntimeException.java 489730 2006-12-22 19:18:16Z bayard $
- Author:
- Rainer Klute <klute@rainer-klute.de>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HPSFRuntimeException()
Creates a newHPSFRuntimeException
.HPSFRuntimeException(String msg)
Creates a newHPSFRuntimeException
with a message string.HPSFRuntimeException(String msg, Throwable reason)
Creates a newHPSFRuntimeException
with a message string and a reason.HPSFRuntimeException(Throwable reason)
Creates a newHPSFRuntimeException
with a reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getReason()
void
printStackTrace()
void
printStackTrace(PrintStream p)
void
printStackTrace(PrintWriter p)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HPSFRuntimeException
public HPSFRuntimeException()
Creates a new
HPSFRuntimeException
.
-
HPSFRuntimeException
public HPSFRuntimeException(String msg)
Creates a new
HPSFRuntimeException
with a message string.- Parameters:
msg
- The message string.
-
HPSFRuntimeException
public HPSFRuntimeException(Throwable reason)
Creates a new
HPSFRuntimeException
with a reason.- Parameters:
reason
- The reason, i.e. a throwable that indirectly caused this exception.
-
HPSFRuntimeException
public HPSFRuntimeException(String msg, Throwable reason)
Creates a new
HPSFRuntimeException
with a message string and a reason.- Parameters:
msg
- The message string.reason
- The reason, i.e. a throwable that indirectly caused this exception.
-
-
Method Detail
-
getReason
public Throwable getReason()
Returns the
Throwable
that caused this exception to be thrown ornull
if there was no suchThrowable
.- Returns:
- The reason
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in classThrowable
- See Also:
Throwable.printStackTrace()
-
printStackTrace
public void printStackTrace(PrintStream p)
- Overrides:
printStackTrace
in classThrowable
- See Also:
Throwable.printStackTrace(java.io.PrintStream)
-
printStackTrace
public void printStackTrace(PrintWriter p)
- Overrides:
printStackTrace
in classThrowable
- See Also:
Throwable.printStackTrace(java.io.PrintWriter)
-
-