StreamNotFoundException.fromError constructor

StreamNotFoundException.fromError(
  1. GrpcError error
)

Constructs a new instance of StreamNotFoundException from given error

Implementation

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