io.vertx.core.streams

## Interface StreamBase

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

      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 © 2017. All rights reserved.