Package org.apache.poi.hpsf
Class VariantTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.poi.hpsf.HPSFException
org.apache.poi.hpsf.VariantTypeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalVariantTypeException
,UnsupportedVariantTypeException
This exception is thrown if HPSF encounters a problem with a variant type. Concrete subclasses specifiy the problem further.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVariantTypeException
(long variantType, Object value, String msg) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the value who's variant type caused the problem.long
Returns the offending variant type.Methods inherited from class org.apache.poi.hpsf.HPSFException
getReason
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VariantTypeException
Constructor.
- Parameters:
variantType
- The variant type causing the problemvalue
- The value who's variant type causes the problemmsg
- A message text describing the problem
-
-
Method Details
-
getVariantType
public long getVariantType()Returns the offending variant type.
- Returns:
- the offending variant type.
-
getValue
Returns the value who's variant type caused the problem.
- Returns:
- the value who's variant type caused the problem
-