Class CommandDispatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.messaging.commandhandling.CommandDispatchException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AxonServerCommandDispatchException
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 Summary
ConstructorsConstructorDescriptionCommandDispatchException(String message) Initializes the exception using the givenmessage.CommandDispatchException(String message, Throwable cause) Initializes the exception using the givenmessageandcause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandDispatchException
Initializes the exception using the givenmessage.- Parameters:
message- The message describing the exception
-
CommandDispatchException
Initializes the exception using the givenmessageandcause.- Parameters:
message- The message describing the exceptioncause- The underlying cause of the exception
-