Interface DatabaseQueryFailureEvent


  • public interface DatabaseQueryFailureEvent
    A failure event. Provides access to information about the cause of the failure.
    Author:
    OpenCloud
    • Method Detail

      • getQueryInfo

        QueryInfo getQueryInfo()
        Return a reference to the QueryInfo object that was used for the request that generated this failure, or null if this failure event is for a transaction end request (commit or rollback).
        Returns:
        the original QueryInfo object
        Since:
        1.2
      • getFailureReason

        QueryFailureReason getFailureReason()
        The reason for the failure.
        Returns:
        failure reason
      • getErrorMessage

        String getErrorMessage()
        Returns a human-readable error message.
        Returns:
        message describing the failure
      • getCause

        Throwable getCause()
        The exception that caused the failure, if applicable.
        Returns:
        an exception cause if available, null if the failure was not caused by an exception