Class MessagesWithSameIdException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
pt.unl.fct.di.novasys.babel2.channels.exceptions.MessagesWithSameIdException
All Implemented Interfaces:
Serializable

public class MessagesWithSameIdException extends RuntimeException
Unchecked exception thrown when two distinct message types are registered with the same numeric identifier in the SerializerRegistry.

Each Babel IP message must be annotated with a globally unique id value via BabelIPMessage. If the registry detects a collision at class-loading time this exception is thrown immediately so that the configuration error is surfaced before any network communication takes place.

See Also:
  • Constructor Details

    • MessagesWithSameIdException

      public MessagesWithSameIdException(String message)
      Constructs a new exception with a message that identifies the conflicting message types.
      Parameters:
      message - human-readable description of which two message classes share the same ID