Class FrameTooLongException

  • All Implemented Interfaces:
    Serializable

    public class FrameTooLongException
    extends DriverException
    Indicates that the response frame for a request exceeded Frame.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 Detail

      • FrameTooLongException

        public FrameTooLongException​(int streamId)
    • 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: DriverException
        Copy 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:
        copy in class DriverException
        Returns:
        a copy/clone of this exception.