org.axonframework.common
Class AxonNonTransientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.axonframework.common.AxonException
                  extended by 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

Constructor Summary
AxonNonTransientException(String message)
          Initializes the exception using the given message.
AxonNonTransientException(String message, Throwable cause)
          Initializes the exception using the given message and cause.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 exception
cause - The underlying cause of the exception
Method Detail

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.