Class NewConnectionPromotionException

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

public class NewConnectionPromotionException extends Exception
Checked exception that signals a failure during the promotion of a newly established connection to replace an existing one in the duplicate-connection resolution logic of the TCP and QUIC Babel channels.

When two nodes simultaneously initiate a connection to each other, only one connection is kept; the other is closed. This exception may be thrown if the promotion step encounters an unexpected state.

See Also:
  • Constructor Details

    • NewConnectionPromotionException

      public NewConnectionPromotionException()
      Constructs a new NewConnectionPromotionException with no detail message.
    • NewConnectionPromotionException

      public NewConnectionPromotionException(String message)
      Constructs a new NewConnectionPromotionException with the specified detail message.
      Parameters:
      message - the detail message
    • NewConnectionPromotionException

      public NewConnectionPromotionException(Throwable cause)
      Constructs a new NewConnectionPromotionException with the specified cause.
      Parameters:
      cause - the underlying cause