Interface DatabaseQueryFailureEvent
-
public interface DatabaseQueryFailureEvent
A failure event. Provides access to information about the cause of the failure.- Author:
- OpenCloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Throwable
getCause()
The exception that caused the failure, if applicable.String
getErrorMessage()
Returns a human-readable error message.QueryFailureReason
getFailureReason()
The reason for the failure.QueryInfo
getQueryInfo()
Return a reference to theQueryInfo
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).
-
-
-
Method Detail
-
getQueryInfo
QueryInfo getQueryInfo()
Return a reference to theQueryInfo
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
-
-