Class NewConnectionPromotionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
pt.unl.fct.di.novasys.babel2.channels.exceptions.NewConnectionPromotionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructs a newNewConnectionPromotionExceptionwith no detail message.NewConnectionPromotionException(String message) Constructs a newNewConnectionPromotionExceptionwith the specified detail message.Constructs a newNewConnectionPromotionExceptionwith the specified cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NewConnectionPromotionException
public NewConnectionPromotionException()Constructs a newNewConnectionPromotionExceptionwith no detail message. -
NewConnectionPromotionException
Constructs a newNewConnectionPromotionExceptionwith the specified detail message.- Parameters:
message- the detail message
-
NewConnectionPromotionException
Constructs a newNewConnectionPromotionExceptionwith the specified cause.- Parameters:
cause- the underlying cause
-