Class NoHandlerForQueryException

All Implemented Interfaces:
Serializable

public class NoHandlerForQueryException extends AxonNonTransientException
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 Details

    • NoHandlerForQueryException

      public NoHandlerForQueryException(String message)
      Initialize this exception with the given message.
      Parameters:
      message - the message describing the cause of the exception
    • NoHandlerForQueryException

      public NoHandlerForQueryException(QueryMessage<?,?> query)
      Initialize this exception with a message describing the given QueryMessage. This constructor specifies in its message that missing parameters could be the culprit of finding a matching handler.
      Parameters:
      query - the query for which no handler was found