Class IncompleteDeserializationException

  • All Implemented Interfaces:
    Serializable

    public class IncompleteDeserializationException
    extends RuntimeException
    Exception which can be used to access a message which failed to be deserialized completely using Java serialization. Throwed from deserialization methods it can be caught by a caller.

    Should be RuntimeException because of limitations of Java serialization mechanisms.

    Catching ClassNotFoundException inside deserialization methods cannot do the same trick because Java deserialization remembers such exception internally and will rethrow it anyway upon returing to a user.

    See Also:
    Serialized Form
    • Constructor Detail

      • IncompleteDeserializationException

        public IncompleteDeserializationException​(@NotNull
                                                  @NotNull DiscoveryCustomMessage m)
        Parameters:
        m - Message.