Class AbortException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAbort()
      Returns the abort data as a top-level Object.
      <T> T getAbort​(java.lang.Class<T> clazz)
      Returns the abort data decoded into the specified class, or null if there is no abort data.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbortException

        public AbortException​(QueryFailure response)
        Constructs a new AbortException with the specified QueryFailure response.
        Parameters:
        response - The QueryFailure object containing details about the aborted query.
    • Method Detail

      • getAbort

        public java.lang.Object getAbort()
        Returns the abort data as a top-level Object. This is primarily useful for debugging or situations where the type of abort data may be unknown.
        Returns:
        An Object containing the abort data, or null if no data is present.
      • getAbort

        public <T> T getAbort​(java.lang.Class<T> clazz)
        Returns the abort data decoded into the specified class, or null if there is no abort data. The abort data is cached upon retrieval to avoid redundant decoding.
        Type Parameters:
        T - The type of the abort data.
        Parameters:
        clazz - The Class to decode the abort data into.
        Returns:
        The decoded abort data of type T, or null if no data is available.