failed

Fail directly with a user specified exception.

Source stages

Signature

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

Description

Fail directly with a user specified exception.

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.