public class WriteTimeoutException extends QueryTimeoutException
Constructor and Description |
---|
WriteTimeoutException(ConsistencyLevel consistency,
WriteType writeType,
int received,
int required)
This constructor should only be used internally by the driver
when decoding error responses.
|
WriteTimeoutException(InetSocketAddress address,
ConsistencyLevel consistency,
WriteType writeType,
int received,
int required) |
Modifier and Type | Method and Description |
---|---|
DriverException |
copy()
Copy the exception.
|
WriteTimeoutException |
copy(InetSocketAddress address)
Create a copy of this exception with a nicer stack trace, and including the coordinator
address that caused this exception to be raised.
|
WriteType |
getWriteType()
The type of the write for which a timeout was raised.
|
getAddress, getConsistencyLevel, getHost, getReceivedAcknowledgements, getRequiredAcknowledgements
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WriteTimeoutException(ConsistencyLevel consistency, WriteType writeType, int received, int required)
public WriteTimeoutException(InetSocketAddress address, ConsistencyLevel consistency, WriteType writeType, int received, int required)
public WriteType getWriteType()
public DriverException copy()
DriverException
copy
in class DriverException
public WriteTimeoutException copy(InetSocketAddress address)
address
- The full address of the host that caused this exception to be thrown.