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:
- AggregateIdentifierNotInitializedException, AggregateNotFoundException, AxonConfigurationException, CommandResponseProcessingFailedException, ConflictingModificationException, EventListenerSubscriptionFailedException, EventReplayUnsupportedException, EventStoreException, FixtureExecutionException, IllegalLockUsageException, IncompatibleAggregateException, MatcherExecutionException, NoHandlerForCommandException, SerializationException, StructuralCommandValidationFailedException, UnknownSerializedTypeException
public abstract class AxonNonTransientException
- extends AxonException
Exception indicating an error has been cause 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:
- Serialized Form
Method Summary |
static boolean |
isCauseOf(Throwable throwable)
Indicates whether the given throwable is a AxonNonTransientException exception or indicates to be
caused by one. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AxonNonTransientException
public AxonNonTransientException(String message)
- Initializes the exception using the given
message
.
- Parameters:
message
- The message describing the exception
AxonNonTransientException
public AxonNonTransientException(String message,
Throwable cause)
- Initializes the exception using the given
message
and cause
.
- Parameters:
message
- The message describing the exceptioncause
- The underlying cause of the exception
isCauseOf
public static boolean isCauseOf(Throwable throwable)
- Indicates whether the given
throwable
is a AxonNonTransientException exception or indicates to be
caused by one.
- Parameters:
throwable
- The throwable to inspect
- Returns:
true
if the given instance or one of it's causes is an instance of
AxonNonTransientException, otherwise false
Copyright © 2010-2016. All Rights Reserved.