Class VariantTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.hardwood.row.VariantTypeException
- All Implemented Interfaces:
Serializable
Thrown when a Variant accessor is called on a value whose tagged type
does not match what the accessor expects — for example, calling
PqVariant.asInt() on a Variant holding a STRING.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantTypeExceptionexpected(VariantType expected, VariantType actual) static VariantTypeExceptionexpectedOneOf(String expected, VariantType actual) Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VariantTypeException
-
-
Method Details
-
expected
-
expectedOneOf
-