Top Description Fields Constructors Methods
org.apache.poi.hpsf

public Class HPSFRuntimeException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.apache.poi.hpsf.IllegalPropertySetDataException, org.apache.poi.hpsf.MissingSectionException, org.apache.poi.hpsf.NoFormatIDException, org.apache.poi.hpsf.NoSingleSectionException

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.

Field Summary

Modifier and TypeField and Description
private Throwable
reason

The underlying reason for this exception - may be null.

private static final long

Constructor Summary

AccessConstructor and Description
public
public
HPSFRuntimeException(final String
The message string.
msg
)

Creates a new HPSFRuntimeException with a message string.

public
HPSFRuntimeException(final Throwable
The reason, i.e. a throwable that indirectly caused this exception.
reason
)

Creates a new HPSFRuntimeException with a reason.

public
HPSFRuntimeException(final String
The message string.
msg
,
final Throwable
The reason, i.e. a throwable that indirectly caused this exception.
reason
)

Creates a new HPSFRuntimeException with a message string and a reason.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

The reason
getReason
()

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

Field Detail

reasonback to summary
private Throwable reason

The underlying reason for this exception - may be null.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

HPSFRuntimeExceptionback to summary
public HPSFRuntimeException()

Creates a new HPSFRuntimeException.

HPSFRuntimeExceptionback to summary
public HPSFRuntimeException(final String msg)

Creates a new HPSFRuntimeException with a message string.

Parameters
msg:String

The message string.

HPSFRuntimeExceptionback to summary
public HPSFRuntimeException(final Throwable reason)

Creates a new HPSFRuntimeException with a reason.

Parameters
reason:Throwable

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

HPSFRuntimeExceptionback to summary
public HPSFRuntimeException(final String msg, final Throwable reason)

Creates a new HPSFRuntimeException with a message string and a reason.

Parameters
msg:String

The message string.

reason:Throwable

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

Method Detail

getReasonback to summary
public Throwable getReason()

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

Returns:Throwable

The reason