# Class: StreamBase

## vertx-js/stream_base~ StreamBase

#### new StreamBase()

Base interface for a stream.

Source:
  - vertx-js/stream_base.js, line 29

### Methods

#### exceptionHandler(handler) → {StreamBase}

Set an exception handler.

##### Parameters:

Name | Type | Description
--- | --- | ---
`handler` | function | the handler

Source:
  - vertx-js/stream_base.js, line 41

##### Returns:

a reference to this, so the API can be used fluently

Type
  StreamBase