public abstract class VariantTypeException extends HPSFException
This exception is thrown if HPSF encounters a problem with a variant type. Concrete subclasses specifiy the problem further.
(如果 HPSF 遇到变体类型的问题,则会引发此异常。具体的子类进一步说明了问题。)Constructor and Description |
---|
VariantTypeException(long variantType, java.lang.Object value, java.lang.String msg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue()
Returns the value who's variant type caused the problem.
(返回变量类型导致问题的值。)
|
long |
getVariantType()
Returns the offending variant type.
(返回有问题的变体类型。)
|
getReason
public VariantTypeException(long variantType, java.lang.Object value, java.lang.String msg)
Constructor.
(构造函数。)variantType
- The variant type causing the problem
(variantType - 导致问题的变体类型)
value
- The value who's variant type causes the problem
(value - 变量类型导致问题的值)
msg
- A message text describing the problem
(msg - 描述问题的消息文本)
public long getVariantType()
Returns the offending variant type.
(返回有问题的变体类型。)public java.lang.Object getValue()
Returns the value who's variant type caused the problem.
(返回变量类型导致问题的值。)Copyright 2021 The Apache Software Foundation or its licensors, as applicable.