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.
ATTR_EVENT_TYPE_NAME
Modifier and Type | Method and Description |
---|---|
static InvalidEventException |
onConstraintViolations(io.spine.base.EventMessage eventMsg,
java.lang.Iterable<io.spine.validate.ConstraintViolation> violations)
Creates an exception instance for a event message which has fields that
violate validation constraint(s).
|
asError, asThrowable, eventTypeAttribute, getEventMessage
public static InvalidEventException onConstraintViolations(io.spine.base.EventMessage eventMsg, java.lang.Iterable<io.spine.validate.ConstraintViolation> violations)
eventMsg
- the invalid event messageviolations
- the constraint violations for the event message