Class MissingRepositoryException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.modelling.MissingRepositoryException
All Implemented Interfaces:
Serializable

public class MissingRepositoryException extends RuntimeException
Exception thrown by the StateManager when no Repository is registered for a given state type. Can be resolved by registering a Repository for the given state type.
Since:
5.0.0
Author:
Mitchell Herrijgers
See Also:
  • Constructor Details

    • MissingRepositoryException

      public MissingRepositoryException(Class<?> idType, Class<?> entityType)
      Initialize the exception with a message containing the given state type.
      Parameters:
      entityType - The state type for which no repository was registered.