Java Code Examples for io.netty.handler.codec.DecoderException#getCause()
The following examples show how to use
io.netty.handler.codec.DecoderException#getCause() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InitiateSslHandler.java From vertx-sql-client with Apache License 2.0 | 5 votes |
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (cause instanceof DecoderException) { DecoderException err = (DecoderException) cause; cause = err.getCause(); } upgradePromise.tryFail(cause); }
Example 2
Source File: SocketConnectionBase.java From vertx-sql-client with Apache License 2.0 | 5 votes |
private synchronized void handleException(Throwable t) { if (t instanceof DecoderException) { DecoderException err = (DecoderException) t; t = err.getCause(); } handleClose(t); }