Package org.axonframework.messaging.core
Class RemoteExceptionDescription
java.lang.Object
org.axonframework.messaging.core.RemoteExceptionDescription
Description of an Exception received from a remote source. Allows for correct conversion of the cause of
Exceptions without requiring any knowledge on the Exception classes.
- Since:
- 4.0
- Author:
- Steven van Beelen
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteExceptionDescription(List<String> descriptions) Initialize a RemoteExceptionDescription with givendescriptionsdescribing the exception chain on the remote end of communicationRemoteExceptionDescription(List<String> descriptions, boolean persistent) Initialize a RemoteExceptionDescription with givendescriptionsdescribing the exception chain on the remote end of communication. -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteExceptionDescriptiondescribing(Throwable exception) booleaninthashCode()booleanReturns whether the exception is considered persistent or not.toString()
-
Constructor Details
-
RemoteExceptionDescription
Initialize a RemoteExceptionDescription with givendescriptionsdescribing the exception chain on the remote end of communication -
RemoteExceptionDescription
@ConstructorProperties("descriptions, persistent") public RemoteExceptionDescription(List<String> descriptions, boolean persistent) Initialize a RemoteExceptionDescription with givendescriptionsdescribing the exception chain on the remote end of communication. Thepersistentindicator defines whether the exception is considered persistent or transient.
-
-
Method Details
-
describing
-
isPersistent
public boolean isPersistent()Returns whether the exception is considered persistent or not.- Returns:
- the persistency indicator
-
getDescriptions
-
hashCode
public int hashCode() -
equals
-
toString
-