Package org.axonframework.common
Class AxonNonTransientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AppendEventsTransactionRejectedException,AxonConfigurationException,CompletedEmitterException,ComponentDescriptorException,ConversionException,EventStoreException,FixtureExecutionException,IllegalPayloadAccessException,JSR303ViolationException,MatcherExecutionException,RemoteNonTransientHandlingException,ResetNotSupportedException,ShutdownInProgressException,UnauthorizedMessageException
Exception indicating an error has been caused that cannot be resolved without intervention. Retrying the operation
that threw the exception will most likely result in the same exception being thrown.
Examples of such errors are programming errors and version conflicts.
- Since:
- 0.6
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAxonNonTransientException(String message) Initializes the exception using the givenmessage.AxonNonTransientException(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
-
AxonNonTransientException
Initializes the exception using the givenmessage.- Parameters:
message- The message describing the exception
-
AxonNonTransientException
Initializes the exception using the givenmessageandcause.- Parameters:
message- The message describing the exceptioncause- The underlying cause of the exception
-
-
Method Details
-
isCauseOf
Indicates whether the giventhrowableis a AxonNonTransientException exception or indicates to be caused by one.- Parameters:
throwable- The throwable to inspect- Returns:
trueif the given instance or one of it's causes is an instance of AxonNonTransientException, otherwisefalse
-