io.vertx.core.streams

## Interface StreamBase

- All Known Subinterfaces:
    AsyncFile, DatagramSocket, HttpClientRequest, HttpClientResponse, HttpServerFileUpload, HttpServerRequest, HttpServerRequestStream, HttpServerResponse, MessageConsumer<T>, MessageProducer<T>, NetSocket, NetSocketStream, PacketWritestream, ReadStream<T>, ServerWebSocket, ServerWebSocketStream, SockJSSocket, TestSuiteReport, TimeoutStream, WebSocket, WebSocketBase, WebSocketStream, WriteStream<T>

      public interface StreamBase

  Base interface for a stream.
  Author:
    Tim Fox

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `StreamBase` | `exceptionHandler(Handler<Throwable> handler)` Set an exception handler.

- - ### Method Detail

    - #### exceptionHandler

          StreamBase exceptionHandler(Handler<Throwable> handler)

      Set an exception handler.
      Parameters:
        `handler` - the handler
      Returns:
        a reference to this, so the API can be used fluently

Copyright © 2015. All rights reserved.