com.vertica.sdk.TypeCoercionException Class Reference
Inheritance diagram for com.vertica.sdk.TypeCoercionException:
Collaboration diagram for com.vertica.sdk.TypeCoercionException:
| Public Member Functions | |
|---|---|
| TypeCoercionException () | |
| TypeCoercionException (Object value, VerticaType type, TypeCoercionPolicy policyViolated) | |
| TypeCoercionPolicy | getPolicy () |
| VerticaType | getType () |
| Object | getValue () |
Detailed Description
Indicates that a given object value could not be coerced to a particular VerticaType.
Constructor & Destructor Documentation
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.
Parameters
value: The value being coerced.type: The target Vertica type.policyViolated: The policy that caused the error.
Member Function Documentation
TypeCoercionPolicy com.vertica.sdk.TypeCoercionException.getPolicy()
Get the policy which was violated
Returns The policy that caused the exception.
VerticaType com.vertica.sdk.TypeCoercionException.getType()
Get the VerticaType
Returns The target Vertica type.
Object com.vertica.sdk.TypeCoercionException.getValue()
Get the value that caused the exception.
Returns The value being coerced.