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

public abstract Class VariantTypeException

extends HPSFException
Class Inheritance
Known Direct Subclasses
org.apache.poi.hpsf.IllegalVariantTypeException, org.apache.poi.hpsf.UnsupportedVariantTypeException

This exception is thrown if HPSF encounters a problem with a variant type. Concrete subclasses specifiy the problem further.

Field Summary

Modifier and TypeField and Description
private Object
private long

Constructor Summary

AccessConstructor and Description
public
VariantTypeException(final long
The variant type causing the problem
variantType
,
final Object
The value who's variant type causes the problem
value
,
final String
A message text describing the problem
msg
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the value who's variant type caused the problem
getValue
()

Returns the value who's variant type caused the problem.

public long

Returns:

the offending variant type.
getVariantType
()

Returns the offending variant type.

Inherited from org.apache.poi.hpsf.HPSFException:
getReason

Field Detail

valueback to summary
private Object value
variantTypeback to summary
private long variantType

Constructor Detail

VariantTypeExceptionback to summary
public VariantTypeException(final long variantType, final Object value, final String msg)

Constructor.

Parameters
variantType:long

The variant type causing the problem

value:Object

The value who's variant type causes the problem

msg:String

A message text describing the problem

Method Detail

getValueback to summary
public Object getValue()

Returns the value who's variant type caused the problem.

Returns:Object

the value who's variant type caused the problem

getVariantTypeback to summary
public long getVariantType()

Returns the offending variant type.

Returns:long

the offending variant type.