PersistentSubscriptionExistsException.fromError constructor

PersistentSubscriptionExistsException.fromError(
  1. GrpcError error
)

Constructs a new instance of PersistentSubscriptionExistsException from given error

Implementation

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