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
ConstructorsModifierConstructorDescriptionprotected
ChannelBindException
(String localHost, int localPort, @Nullable Throwable cause) protected
ChannelBindException
(String localHost, @Nullable Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelBindException
fail
(SocketAddress bindAddress, @Nullable Throwable cause) Build aChannelBindException
.Return the configured binding host.int
Return 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:
fillInStackTrace
in 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
-