test_class.file: server/src/test/java/io/spine/server/event/InvalidEventExceptionTest.java
test_class.identifier: InvalidEventExceptionTest
test_case.body: @Test
      @DisplayName("create exception with violations")
      void createWithViolations() {
          EventMessage msg = ProjectCreated.getDefaultInstance();
  
          InvalidEventException exception = InvalidEventException.onConstraintViolations(
                  msg,
                  singletonList(ConstraintViolation.getDefaultInstance()));
  
          assertNotNull(exception.getMessage());
          assertNotNull(exception.asError());
          assertEquals(msg, exception.getEventMessage());
      }
test_case.class_method_signature: InvalidEventExceptionTest.createWithViolations()
test_case.full_signature: @Test @DisplayName("create exception with violations") void createWithViolations()
test_case.identifier: createWithViolations
test_case.invocations: getDefaultInstance onConstraintViolations singletonList getDefaultInstance assertNotNull getMessage assertNotNull asError assertEquals getEventMessage
test_case.modifiers: @Test @DisplayName("create exception with violations")
test_case.parameters: ()
test_case.return: void
test_case.signature: void createWithViolations()
focal_class.declarator: serialVersionUID = 0L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 0L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: MSG_VALIDATION_ERROR = "Event message does not match " +
                                                         "the validation constraints."
focal_class.modifier: private static final
focal_class.original_string: private static final String MSG_VALIDATION_ERROR = "Event message does not match " +
                                                         "the validation constraints.";
focal_class.type: String
focal_class.var_name: MSG_VALIDATION_ERROR
focal_class.file: server/src/main/java/io/spine/server/event/InvalidEventException.java
focal_class.identifier: InvalidEventException
focal_class.interfaces: implements MessageInvalid
focal_class.class_method_signature: InvalidEventException.InvalidEventException(String messageText, EventMessage eventMsg, Error error)
focal_class.full_signature: private  InvalidEventException(String messageText, EventMessage eventMsg, Error error)
focal_class.identifier: InvalidEventException
focal_class.modifiers: private
focal_class.parameters: (String messageText, EventMessage eventMsg, Error error)
focal_class.signature:  InvalidEventException(String messageText, EventMessage eventMsg, Error error)
focal_class.class_method_signature: InvalidEventException.onConstraintViolations(EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)
focal_class.full_signature: public static InvalidEventException onConstraintViolations(EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)
focal_class.identifier: onConstraintViolations
focal_class.modifiers: public static
focal_class.parameters: (EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)
focal_class.return: InvalidEventException
focal_class.signature: InvalidEventException onConstraintViolations(EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)
focal_class.superclass: extends EventException
focal_method.body: public static
      InvalidEventException onConstraintViolations(EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations) {
          Factory factory = new Factory(eventMsg, violations);
          return factory.newException();
      }
focal_method.class_method_signature: InvalidEventException.onConstraintViolations(EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)
focal_method.full_signature: public static InvalidEventException onConstraintViolations(EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)
focal_method.identifier: onConstraintViolations
focal_method.invocations: newException
focal_method.modifiers: public static
focal_method.parameters: (EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)
focal_method.return: InvalidEventException
focal_method.signature: InvalidEventException onConstraintViolations(EventMessage eventMsg,
                                                   Iterable<ConstraintViolation> violations)