Package reactor.netty
Class ChannelBindException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
reactor.netty.ChannelBindException
- All Implemented Interfaces:
Serializable
Represents a failing attempt to bind a local socket address.
- Author:
- Stephane Maldini
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChannelBindException(String localHost, int localPort, @Nullable Throwable cause) protectedChannelBindException(String localHost, @Nullable Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelBindExceptionfail(SocketAddress bindAddress, @Nullable Throwable cause) Build aChannelBindException.Return the configured binding host.intReturn the configured binding port.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ChannelBindException
-
ChannelBindException
-
-
Method Details
-
fail
Build aChannelBindException.- Parameters:
bindAddress- the local addresscause- the root cause- Returns:
- a new
ChannelBindException - Since:
- 0.9.7
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
localHost
Return the configured binding host.- Returns:
- the configured binding host
-
localPort
public int localPort()Return the configured binding port.- Returns:
- the configured local binding port
-