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:
java.io.Serializable
- Direct Known Subclasses:
IllegalPropertySetDataException,MissingSectionException,NoFormatIDException,NoSingleSectionException
public class HPSFRuntimeException extends java.lang.RuntimeExceptionThis 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(java.lang.String msg)Creates a newHPSFRuntimeExceptionwith a message string.HPSFRuntimeException(java.lang.String msg, java.lang.Throwable reason)Creates a newHPSFRuntimeExceptionwith a message string and a reason.HPSFRuntimeException(java.lang.Throwable reason)Creates a newHPSFRuntimeExceptionwith a reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetReason()Returns theThrowablethat caused this exception to be thrown ornullif there was no suchThrowable.voidprintStackTrace()voidprintStackTrace(java.io.PrintStream p)voidprintStackTrace(java.io.PrintWriter p)
-
-
-
Constructor Detail
-
HPSFRuntimeException
public HPSFRuntimeException()
Creates a new
HPSFRuntimeException.
-
HPSFRuntimeException
public HPSFRuntimeException(java.lang.String msg)
Creates a new
HPSFRuntimeExceptionwith a message string.- Parameters:
msg- The message string.
-
HPSFRuntimeException
public HPSFRuntimeException(java.lang.Throwable reason)
Creates a new
HPSFRuntimeExceptionwith a reason.- Parameters:
reason- The reason, i.e. a throwable that indirectly caused this exception.
-
HPSFRuntimeException
public HPSFRuntimeException(java.lang.String msg, java.lang.Throwable reason)Creates a new
HPSFRuntimeExceptionwith 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 java.lang.Throwable getReason()
Returns the
Throwablethat caused this exception to be thrown ornullif there was no suchThrowable.- Returns:
- The reason
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTracein classjava.lang.Throwable- See Also:
Throwable.printStackTrace()
-
printStackTrace
public void printStackTrace(java.io.PrintStream p)
- Overrides:
printStackTracein classjava.lang.Throwable- See Also:
Throwable.printStackTrace(java.io.PrintStream)
-
printStackTrace
public void printStackTrace(java.io.PrintWriter p)
- Overrides:
printStackTracein classjava.lang.Throwable- See Also:
Throwable.printStackTrace(java.io.PrintWriter)
-
-