public class InvalidEventException extends EventException
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
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