Failure

data class Failure<T>(val exception: Exception) : StreamResponse<T>

Represents a failure in the stream.

After a Failure is emitted, no more items will be emitted in the stream.

Parameters

exception

The exception that caused the stream to fail.

Constructors

Link copied to clipboard
constructor(exception: Exception)

Properties

Link copied to clipboard
Link copied to clipboard

Indicates whether this response represents a success.