failed

Fail directly with a user specified exception.

Source operators

Signature

def failed[T](cause: Throwable): Source[T, NotUsed]

Description

Fail directly with a user specified exception.

Reactive Streams semantics

emits never

completes fails the stream directly with the given exception

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.