Package org.axonframework.messaging.core
Class RemoteHandlingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.messaging.core.RemoteHandlingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AxonServerRemoteCommandHandlingException,AxonServerRemoteQueryHandlingException
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 Summary
ConstructorsConstructorDescriptionRemoteHandlingException(RemoteExceptionDescription exceptionDescription) Initializes the exception using the givenexceptionDescriptiondescribing the remote cause-chain.RemoteHandlingException(RemoteExceptionDescription exceptionDescription, boolean writableStackTrace) Initializes the exception using the givenexceptionDescriptionandwritableStackTrace. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RemoteHandlingException
Initializes the exception using the givenexceptionDescriptiondescribing the remote cause-chain.- Parameters:
exceptionDescription- aStringdescribing the remote exceptions
-
RemoteHandlingException
public RemoteHandlingException(RemoteExceptionDescription exceptionDescription, boolean writableStackTrace) Initializes the exception using the givenexceptionDescriptionandwritableStackTrace.- Parameters:
exceptionDescription- aStringdescribing the remote exceptionswritableStackTrace- whether the stack trace should be generated (true) or not (false)
-
-
Method Details