test_class.file: server/src/test/java/io/spine/server/type/EventClassTest.java
test_class.identifier: EventClassTest
test_case.body: @Test
      @DisplayName("obtain the value by `ThrowableMessage` class")
      void byThrowableMessage() {
          assertThat(EventClass.fromThrowable(PhoneNotFound.class).value())
                  .isEqualTo(TestRejections.PhoneNotFound.class);
      }
test_case.class_method_signature: EventClassTest.byThrowableMessage()
test_case.full_signature: @Test @DisplayName("obtain the value by `ThrowableMessage` class") void byThrowableMessage()
test_case.identifier: byThrowableMessage
test_case.invocations: isEqualTo assertThat value fromThrowable
test_case.modifiers: @Test @DisplayName("obtain the value by `ThrowableMessage` class")
test_case.parameters: ()
test_case.return: void
test_case.signature: void byThrowableMessage()
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: MESSAGE_THROWN_METHOD = "messageThrown"
focal_class.modifier: private static final
focal_class.original_string: private static final String MESSAGE_THROWN_METHOD = "messageThrown";
focal_class.type: String
focal_class.var_name: MESSAGE_THROWN_METHOD
focal_class.file: server/src/main/java/io/spine/server/type/EventClass.java
focal_class.identifier: EventClass
focal_class.class_method_signature: EventClass.EventClass(Class<? extends EventMessage> value)
focal_class.full_signature: private  EventClass(Class<? extends EventMessage> value)
focal_class.identifier: EventClass
focal_class.modifiers: private
focal_class.parameters: (Class<? extends EventMessage> value)
focal_class.signature:  EventClass(Class<? extends EventMessage> value)
focal_class.class_method_signature: EventClass.EventClass(Class<? extends EventMessage> value, TypeUrl typeUrl)
focal_class.full_signature: private  EventClass(Class<? extends EventMessage> value, TypeUrl typeUrl)
focal_class.identifier: EventClass
focal_class.modifiers: private
focal_class.parameters: (Class<? extends EventMessage> value, TypeUrl typeUrl)
focal_class.signature:  EventClass(Class<? extends EventMessage> value, TypeUrl typeUrl)
focal_class.class_method_signature: EventClass.from(Class<? extends EventMessage> rawClass)
focal_class.full_signature: public static EventClass from(Class<? extends EventMessage> rawClass)
focal_class.identifier: from
focal_class.modifiers: public static
focal_class.parameters: (Class<? extends EventMessage> rawClass)
focal_class.return: EventClass
focal_class.signature: EventClass from(Class<? extends EventMessage> rawClass)
focal_class.class_method_signature: EventClass.fromThrowable(Class<? extends ThrowableMessage> cls)
focal_class.full_signature: public static EventClass fromThrowable(Class<? extends ThrowableMessage> cls)
focal_class.identifier: fromThrowable
focal_class.modifiers: public static
focal_class.parameters: (Class<? extends ThrowableMessage> cls)
focal_class.return: EventClass
focal_class.signature: EventClass fromThrowable(Class<? extends ThrowableMessage> cls)
focal_class.class_method_signature: EventClass.from(TypeUrl typeUrl)
focal_class.full_signature: @SuppressWarnings("unchecked") // Logically checked. public static EventClass from(TypeUrl typeUrl)
focal_class.identifier: from
focal_class.modifiers: @SuppressWarnings("unchecked") // Logically checked. public static
focal_class.parameters: (TypeUrl typeUrl)
focal_class.return: EventClass
focal_class.signature: EventClass from(TypeUrl typeUrl)
focal_class.class_method_signature: EventClass.from(Event event)
focal_class.full_signature: public static EventClass from(Event event)
focal_class.identifier: from
focal_class.modifiers: public static
focal_class.parameters: (Event event)
focal_class.return: EventClass
focal_class.signature: EventClass from(Event event)
focal_class.class_method_signature: EventClass.of(Message eventOrMessage)
focal_class.full_signature: public static EventClass of(Message eventOrMessage)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (Message eventOrMessage)
focal_class.return: EventClass
focal_class.signature: EventClass of(Message eventOrMessage)
focal_class.class_method_signature: EventClass.setOf(Iterable<Class<? extends EventMessage>> classes)
focal_class.full_signature: public static ImmutableSet<EventClass> setOf(Iterable<Class<? extends EventMessage>> classes)
focal_class.identifier: setOf
focal_class.modifiers: public static
focal_class.parameters: (Iterable<Class<? extends EventMessage>> classes)
focal_class.return: ImmutableSet<EventClass>
focal_class.signature: ImmutableSet<EventClass> setOf(Iterable<Class<? extends EventMessage>> classes)
focal_class.class_method_signature: EventClass.setOf(Class<? extends EventMessage>... classes)
focal_class.full_signature: @SafeVarargs public static ImmutableSet<EventClass> setOf(Class<? extends EventMessage>... classes)
focal_class.identifier: setOf
focal_class.modifiers: @SafeVarargs public static
focal_class.parameters: (Class<? extends EventMessage>... classes)
focal_class.return: ImmutableSet<EventClass>
focal_class.signature: ImmutableSet<EventClass> setOf(Class<? extends EventMessage>... classes)
focal_class.class_method_signature: EventClass.setOf(Class<? extends EventMessage> cls)
focal_class.full_signature: public static ImmutableSet<EventClass> setOf(Class<? extends EventMessage> cls)
focal_class.identifier: setOf
focal_class.modifiers: public static
focal_class.parameters: (Class<? extends EventMessage> cls)
focal_class.return: ImmutableSet<EventClass>
focal_class.signature: ImmutableSet<EventClass> setOf(Class<? extends EventMessage> cls)
focal_class.superclass: extends MessageClass<EventMessage>
focal_method.body: public static EventClass fromThrowable(Class<? extends ThrowableMessage> cls) {
          Method messageThrownMethod;
          try {
              messageThrownMethod = cls.getMethod(MESSAGE_THROWN_METHOD);
          } catch (NoSuchMethodException e) {
              throw illegalStateWithCauseOf(e);
          }
          @SuppressWarnings("unchecked") // Safe as declared by `ThrowableMessage.messageThrown`.
          Class<? extends RejectionMessage> returnType = (Class<? extends RejectionMessage>)
                  messageThrownMethod.getReturnType();
          return from(returnType);
      }
focal_method.class_method_signature: EventClass.fromThrowable(Class<? extends ThrowableMessage> cls)
focal_method.full_signature: public static EventClass fromThrowable(Class<? extends ThrowableMessage> cls)
focal_method.identifier: fromThrowable
focal_method.invocations: getMethod illegalStateWithCauseOf getReturnType from
focal_method.modifiers: public static
focal_method.parameters: (Class<? extends ThrowableMessage> cls)
focal_method.return: EventClass
focal_method.signature: EventClass fromThrowable(Class<? extends ThrowableMessage> cls)