org.axonframework.commandhandling.distributed
Class CommandDispatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.axonframework.common.AxonException
                  extended by org.axonframework.commandhandling.distributed.CommandDispatchException
All Implemented Interfaces:
Serializable

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:
Serialized Form

Constructor Summary
CommandDispatchException(String message)
          Initializes the exception using the given message.
CommandDispatchException(String message, Throwable cause)
          Initializes the exception using the given message and cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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


Copyright © 2010-2016. All Rights Reserved.