public class CodecNotFoundException extends DriverException
TypeCodec cannot be found by the CodecRegistry.| Constructor and Description |
|---|
CodecNotFoundException(DataType cqlType,
GenericType<?> javaType) |
CodecNotFoundException(Throwable cause,
DataType cqlType,
GenericType<?> javaType) |
| Modifier and Type | Method and Description |
|---|---|
DriverException |
copy()
Copy the exception.
|
DataType |
getCqlType() |
GenericType<?> |
getJavaType() |
getExecutionInfo, setExecutionInfoaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CodecNotFoundException(@Nullable
DataType cqlType,
@Nullable
GenericType<?> javaType)
public CodecNotFoundException(@NonNull
Throwable cause,
@Nullable
DataType cqlType,
@Nullable
GenericType<?> javaType)
@Nullable public DataType getCqlType()
@Nullable public GenericType<?> getJavaType()
@NonNull public DriverException copy()
DriverExceptionThis returns a new exception, equivalent to the original one, except that because a new object is created in the current thread, the top-most element in the stacktrace of the exception will refer to the current thread. The original exception may or may not be included as the copy's cause, depending on whether that is deemed useful (this is left to the discretion of each implementation).
This is intended for the synchronous wrapper methods of the driver, in order to produce a more user-friendly stack trace (that includes the line in the user code where the driver rethrew the error).
copy in class DriverExceptionCopyright © 2017–2023. All rights reserved.