Class RemoteHandlingException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AxonServerRemoteCommandHandlingException, AxonServerRemoteQueryHandlingException

public class RemoteHandlingException extends AxonException
Exception indicating that an error has occurred while remotely handling a message.

By default, a stack trace is not generated for this exception. However, the stack trace creation can be enforced explicitly via the constructor accepting the writableStackTrace parameter.

The sender of the message cannot assume that the message has not been handled. It may, if the type of message or the infrastructure allows it, try to dispatch the message again.

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

    • RemoteHandlingException

      public RemoteHandlingException(RemoteExceptionDescription exceptionDescription)
      Initializes the exception using the given exceptionDescription describing the remote cause-chain.
      Parameters:
      exceptionDescription - a String describing the remote exceptions
    • RemoteHandlingException

      public RemoteHandlingException(RemoteExceptionDescription exceptionDescription, boolean writableStackTrace)
      Initializes the exception using the given exceptionDescription and writableStackTrace.
      Parameters:
      exceptionDescription - a String describing the remote exceptions
      writableStackTrace - whether the stack trace should be generated (true) or not (false)
  • Method Details

    • getExceptionDescriptions

      public List<String> getExceptionDescriptions()
      Returns a List of Strings describing the remote exception.
      Returns:
      a List of Strings describing the remote exception