StreamDeletedException.fromError constructor

StreamDeletedException.fromError(
  1. GrpcError error
)

Constructs a new instance of StreamDeletedException from given error

Implementation

factory StreamDeletedException.fromError(GrpcError error) =>
    StreamDeletedException(
      error.trailers![Exceptions.StreamName] ?? '<unknown>',
      cause: error,
    );