Class ComponentNotFoundException

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

public class ComponentNotFoundException extends RuntimeException
A RuntimeException dedicated when a Component cannot be found in the Configuration.
Since:
5.0.0
Author:
Steven van Beelen, Mitchell Herrijgers
See Also:
  • Constructor Details

    • ComponentNotFoundException

      public ComponentNotFoundException(Class<?> type, @Nullable String name)
      Constructs a ComponentNotFoundException with a default message describing a Component couldn't be found for the given type and name.
      Parameters:
      type - the type of the component that could not be found, typically an interface
      name - the name of the component that could not be found, potentially null when unimportant
    • ComponentNotFoundException

      public ComponentNotFoundException(TypeReference<?> typeReference, @Nullable String name)
      Constructs a ComponentNotFoundException with a default message describing a Component couldn't be found for the given typeReference and name.
      Parameters:
      typeReference - the type of the component that could not be found, typically an interface
      name - the name of the component that could not be found, potentially null when unimportant