Java SDK Documentation
23.4.0
|
Public Member Functions | |
TypeCoercionException () | |
TypeCoercionException (Object value, VerticaType type, TypeCoercionPolicy policyViolated) | |
TypeCoercionPolicy | getPolicy () |
VerticaType | getType () |
Object | getValue () |
Indicates that a given object value could not be coerced to a particular VerticaType.
com.vertica.sdk.TypeCoercionException.TypeCoercionException | ( | ) |
A new empty exception.
com.vertica.sdk.TypeCoercionException.TypeCoercionException | ( | Object | value, |
VerticaType | type, | ||
TypeCoercionPolicy | policyViolated | ||
) |
A TypeCoercion exception generated by attempting to coerce value
to type
, but failed due to policyViolated
.
value | The value being coerced. |
type | The target Vertica type. |
policyViolated | The policy that caused the error. |
TypeCoercionPolicy com.vertica.sdk.TypeCoercionException.getPolicy | ( | ) |
Get the policy which was violated
VerticaType com.vertica.sdk.TypeCoercionException.getType | ( | ) |
Get the VerticaType
Object com.vertica.sdk.TypeCoercionException.getValue | ( | ) |
Get the value that caused the exception.