Package org.axonframework.modelling
Class MissingRepositoryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.modelling.MissingRepositoryException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionMissingRepositoryException(Class<?> idType, Class<?> entityType) Initialize the exception with a message containing the given state type. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingRepositoryException
Initialize the exception with a message containing the given state type.- Parameters:
entityType- The state type for which no repository was registered.
-