Class ComponentOverrideException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.configuration.ComponentOverrideException
All Implemented Interfaces:
Serializable

public class ComponentOverrideException extends RuntimeException
A RuntimeException thrown whenever a Component has been overridden in a ComponentRegistry.

Is typically only thrown whenever the OverridePolicy is set to OverridePolicy.REJECT.

Since:
5.0.0
Author:
Steven van Beelen
See Also:
  • Constructor Details

    • ComponentOverrideException

      public ComponentOverrideException(@Nonnull Class<?> type, @Nullable String name)
      Constructs a ComponentOverrideException with the given type and name as the unique identifier of the Component that has been overridden in a ApplicationConfigurer.
      Parameters:
      type - The type of the component this object identifiers, typically an interface.
      name - The name of the component this object identifiers, potentially null when unimportant.