Class ComponentOverrideException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.configuration.ComponentOverrideException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionComponentOverrideException(Class<?> type, String name) Constructs aComponentOverrideExceptionwith the giventypeandnameas the unique identifier of theComponentthat has been overridden in aApplicationConfigurer. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ComponentOverrideException
Constructs aComponentOverrideExceptionwith the giventypeandnameas the unique identifier of theComponentthat has been overridden in aApplicationConfigurer.- Parameters:
type- The type of the component this object identifiers, typically an interface.name- The name of the component this object identifiers, potentiallynullwhen unimportant.
-