FileDocCategorySizeDatePackage
HPSFRuntimeException.javaAPI DocApache Poi 3.0.13833Mon Jan 01 12:39:34 GMT 2007org.apache.poi.hpsf

HPSFRuntimeException

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.

author
Rainer Klute <klute@rainer-klute.de>
version
$Id: HPSFRuntimeException.java 489730 2006-12-22 19:18:16Z bayard $
since
2002-02-09

Fields Summary
private Throwable
reason

The underlying reason for this exception - may be null.

Constructors Summary
public HPSFRuntimeException()

Creates a new {@link HPSFRuntimeException}.

        super();
    
public HPSFRuntimeException(String msg)

Creates a new {@link HPSFRuntimeException} with a message string.

param
msg The message string.

        super(msg);
    
public HPSFRuntimeException(Throwable reason)

Creates a new {@link HPSFRuntimeException} with a reason.

param
reason The reason, i.e. a throwable that indirectly caused this exception.

        super();
        this.reason = reason;
    
public HPSFRuntimeException(String msg, Throwable reason)

Creates a new {@link HPSFRuntimeException} with a message string and a reason.

param
msg The message string.
param
reason The reason, i.e. a throwable that indirectly caused this exception.

        super(msg);
        this.reason = reason;
    
Methods Summary
public java.lang.ThrowablegetReason()

Returns the {@link Throwable} that caused this exception to be thrown or null if there was no such {@link Throwable}.

return
The reason

        return reason;
    
public voidprintStackTrace()

see
Throwable#printStackTrace()

        printStackTrace(System.err);
    
public voidprintStackTrace(java.io.PrintStream p)

see
Throwable#printStackTrace(java.io.PrintStream)

        final Throwable reason = getReason();
        super.printStackTrace(p);
        if (reason != null)
        {
            p.println("Caused by:");
            reason.printStackTrace(p);
        }
    
public voidprintStackTrace(java.io.PrintWriter p)

see
Throwable#printStackTrace(java.io.PrintWriter)

        final Throwable reason = getReason();
        super.printStackTrace(p);
        if (reason != null)
        {
            p.println("Caused by:");
            reason.printStackTrace(p);
        }