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
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 Summary
ConstructorsConstructorDescriptionMessagesWithSameIdException(String message) Constructs a new exception with a message that identifies the conflicting message types. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MessagesWithSameIdException
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
-