src/main/java/reactor/netty/ChannelBindException.java
/**
	 * Build a {@link ChannelBindException}
	 *
	 * @param bootstrap a netty bootstrap
	 * @param cause a root cause
	 *
	 * @return a new {@link ChannelBindException}
	 */
Build a  ChannelBindException
@param bootstrap a netty bootstrap
@param cause a root cause

@return a new  ChannelBindException
Build a ChannelBindException @param bootstrap a netty bootstrap @param cause a root cause @return a new ChannelBindException
public static ChannelBindException fail(AbstractBootstrap<?, ?> bootstrap, @Nullable Throwable cause) {
		Objects.requireNonNull(bootstrap, "bootstrap");
		if (cause instanceof java.net.BindException ||
				(cause instanceof IOException && cause.getMessage() != null &&
						cause.getMessage().contains("Address already in use"))) {
			cause = null;
		}
		if (!(bootstrap.config().localAddress() instanceof InetSocketAddress)) {
			return new ChannelBindException(bootstrap.config().localAddress().toString(), -1, cause);
		}
		InetSocketAddress address = (InetSocketAddress)bootstrap.config().localAddress();
		return new ChannelBindException(address.getHostString(), address.getPort(), cause);
	}
public static ChannelBindException fail ( AbstractBootstrap < ? , ? > bootstrap , @ Nullable Throwable cause ) { Objects . requireNonNull ( bootstrap , "bootstrap" ) ; if ( cause instanceof java . net . BindException || ( cause instanceof IOException && cause . getMessage ( ) != null && cause . getMessage ( ) . contains ( "Address already in use" ) ) ) { cause = null ; } if ( ! ( bootstrap . config ( ) . localAddress ( ) instanceof InetSocketAddress ) ) { return new ChannelBindException ( bootstrap . config ( ) . localAddress ( ) . toString ( ) , - 1 , cause ) ; } InetSocketAddress address = ( InetSocketAddress ) bootstrap . config ( ) . localAddress ( ) ; return new ChannelBindException ( address . getHostString ( ) , address . getPort ( ) , cause ) ; }
Build a {@link ChannelBindException}
 @param bootstrap a netty bootstrap
 @param cause a root cause
Build a { @link ChannelBindException } @param bootstrap a netty bootstrap @param cause a root cause
// With epoll/kqueue transport it is // io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use