Class CommandDispatchException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AxonServerCommandDispatchException

public class CommandDispatchException extends AxonException
Exception indicating that an error has occurred while trying to dispatch a command to another (potentially remote) segment of the CommandBus.

The dispatcher of the command may assume that the Command has never reached its destination, and has not been handled.

Since:
2.0
Author:
Allard Buijze
See Also:
  • Constructor Details

    • CommandDispatchException

      public CommandDispatchException(String message)
      Initializes the exception using the given message.
      Parameters:
      message - The message describing the exception
    • CommandDispatchException

      public CommandDispatchException(String message, Throwable cause)
      Initializes the exception using the given message and cause.
      Parameters:
      message - The message describing the exception
      cause - The underlying cause of the exception