Package org.axonframework.queryhandling
Class NoHandlerForQueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.queryhandling.NoHandlerForQueryException
- All Implemented Interfaces:
Serializable
Exception indicating a query for a single result was executed, but no handlers were found that could provide an
answer.
- Since:
- 3.1
- Author:
- Marc Gathier
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoHandlerForQueryException(String message) Initialize this exception with the givenmessage.NoHandlerForQueryException(QueryMessage<?, ?> query) Initialize this exception with a message describing the givenQueryMessage. -
Method Summary
Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOfMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoHandlerForQueryException
Initialize this exception with the givenmessage.- Parameters:
message- the message describing the cause of the exception
-
NoHandlerForQueryException
Initialize this exception with a message describing the givenQueryMessage. This constructor specifies in its message that missing parameters could be the culprit of finding a matching handler.- Parameters:
query- thequeryfor which no handler was found
-