Class FrameTooLongException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.datastax.driver.core.exceptions.DriverException
-
- com.datastax.driver.core.exceptions.FrameTooLongException
-
- All Implemented Interfaces:
Serializable
public class FrameTooLongException extends DriverException
Indicates that the response frame for a request exceededFrame.Decoder.DecoderForStreamIdSize.MAX_FRAME_LENGTH(default: 256MB, configurable via com.datastax.driver.NATIVE_TRANSPORT_MAX_FRAME_SIZE_IN_MB system property) and thus was not parsed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FrameTooLongException(int streamId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameTooLongExceptioncopy()Copy the exception.intgetStreamId()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getStreamId
public int getStreamId()
- Returns:
- The stream id associated with the frame that caused this exception.
-
copy
public FrameTooLongException copy()
Description copied from class:DriverExceptionCopy the exception.This 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 (this is mainly intended for internal use by the driver). The cause of the copied exception will be the original exception.
- Overrides:
copyin classDriverException- Returns:
- a copy/clone of this exception.
-
-