Class AxonNonTransientException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AppendEventsTransactionRejectedException, AxonConfigurationException, CompletedEmitterException, ComponentDescriptorException, ConversionException, EventStoreException, FixtureExecutionException, IllegalPayloadAccessException, JSR303ViolationException, MatcherExecutionException, RemoteNonTransientHandlingException, ResetNotSupportedException, ShutdownInProgressException, UnauthorizedMessageException

public abstract class AxonNonTransientException extends AxonException
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 Details

    • 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 Details

    • 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