Class QueryExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.messaging.core.HandlerExecutionException
org.axonframework.messaging.queryhandling.QueryExecutionException
- All Implemented Interfaces:
Serializable
Exception indicating that the execution of a Query Handler has resulted in an exception.
By default, a stack trace is not generated for this exception. However, the stack trace creation can be enforced explicitly
via the constructor accepting the
writableStackTrace parameter.- Since:
- 3.1
- Author:
- Marc Gathier
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueryExecutionException(String message, Throwable cause) Initializes the exception with givenmessageandcauseQueryExecutionException(String message, Throwable cause, Object details) Initializes the exception with givenmessage,causeanddetails.QueryExecutionException(String message, Throwable cause, Object details, boolean writableStackTrace) Initializes the exception with givenmessage,cause,detailsandwritableStackTrace -
Method Summary
Methods inherited from class org.axonframework.messaging.core.HandlerExecutionException
getDetails, resolveDetailsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueryExecutionException
Initializes the exception with givenmessageandcause- Parameters:
message- Message explaining the context of the errorcause- The underlying cause of the invocation failure
-
QueryExecutionException
Initializes the exception with givenmessage,causeanddetails.- Parameters:
message- Message explaining the context of the errorcause- The underlying cause of the invocation failuredetails- An object providing more error details (may benull)
-
QueryExecutionException
public QueryExecutionException(String message, Throwable cause, Object details, boolean writableStackTrace) Initializes the exception with givenmessage,cause,detailsandwritableStackTrace- Parameters:
message- Message explaining the context of the errorcause- The underlying cause of the invocation failuredetails- An object providing more error details (may benull)writableStackTrace- Whether the stack trace should be generated (true) or not (false)
-