InvalidEventException

public class InvalidEventException extends EventException implements MessageInvalid

The exception for reporting invalid events.

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.

Inherited properties

Link copied to clipboard
public final static String ATTR_EVENT_TYPE_NAME
Link copied to clipboard
Link copied to clipboard
public final EventMessage eventMessage
The event message.
Link copied to clipboard

Functions

Link copied to clipboard
public static InvalidEventException onConstraintViolations(EventMessage eventMsg, Iterable<ConstraintViolation> violations)
Creates an exception instance for a event message which has fields that violate validation constraint(s).

Inherited functions

Link copied to clipboard
public final synchronized void addSuppressed(Throwable exception)
Link copied to clipboard
public Error asError()
Converts this instance into an io.spine.base.Error.
Link copied to clipboard
Converts this instance into a java.lang.Throwable.
Link copied to clipboard
public static Map<String, Value> eventTypeAttribute(Message eventMessage)
Returns a map with an event type attribute.
Link copied to clipboard
public synchronized Throwable fillInStackTrace()
Link copied to clipboard
public synchronized Throwable getCause()
Link copied to clipboard
public EventMessage getEventMessage()
Returns a related event message.
Link copied to clipboard
Link copied to clipboard
public String getMessage()
Link copied to clipboard
Link copied to clipboard
public final synchronized Array<Throwable> getSuppressed()
Link copied to clipboard
public synchronized Throwable initCause(Throwable cause)
Link copied to clipboard
public void printStackTrace()
Link copied to clipboard
public void setStackTrace(Array<StackTraceElement> stackTrace)
Link copied to clipboard
public String toString()