public class InvalidEventException extends EventException implements io.spine.core.MessageInvalid
An event is invalid if it's supported (there's a handler for the event), but its attributes are not populated according to framework conventions or validation constraints.
|Modifier and Type||Method and Description|
Creates an exception instance for a event message which has fields that violate validation constraint(s).
asError, asThrowable, eventTypeAttribute, getEventMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static InvalidEventException onConstraintViolations(io.spine.base.EventMessage eventMsg, java.lang.Iterable<io.spine.validate.ConstraintViolation> violations)
eventMsg- the invalid event message
violations- the constraint violations for the event message