Package java.nio.channels

Examples of java.nio.channels.ClosedChannelException.initCause()


        {
            // most likely the sender did close the connection or something other (firewall?) does interfere the
            // communication
            ClosedChannelException che = new ClosedChannelException();
            che.setStackTrace( e.getStackTrace() );
            che.initCause( e.getCause() );
            throw che;
        }

        if ( buffer.hasRemaining() )
        {
View Full Code Here


        catch ( IOException e )
        {
            // most likely the sender did close the connection
            ClosedChannelException che = new ClosedChannelException();
            che.setStackTrace( e.getStackTrace() );
            che.initCause( e.getCause() );
            throw che;
        }

        if ( timePeriod >= timeout )
        {
View Full Code Here

      handler.channelSendData( remote_vmid, id, buffer );
    }
    catch( NotConnectedException ex ) {
      handleClose();
      ClosedChannelException to_throw = new ClosedChannelException();
      to_throw.initCause( ex );
      throw to_throw;
    }
    catch( ClosedChannelException ex ) {
      handleClose();
      throw ex;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.