Class CannotDispatchCommand
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.stapi.graphsystem.commandvalidation.model.exceptions.CannotDispatchCommand
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CannotDispatchCommandbecauseItDoesNotImplementCommandInterface(String commandName, Class<?> actualClass) static CannotDispatchCommandbecauseThereWereConstrainViolation(String commandName, String targetAggregateIdentifier, List<CommandConstrainViolation> commandConstrainViolations) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
becauseThereWereConstrainViolation
public static CannotDispatchCommand becauseThereWereConstrainViolation(String commandName, String targetAggregateIdentifier, List<CommandConstrainViolation> commandConstrainViolations) -
becauseItDoesNotImplementCommandInterface
public static CannotDispatchCommand becauseItDoesNotImplementCommandInterface(String commandName, Class<?> actualClass) -
getCommandConstrainViolations
-