Exemplo n.º 1
0
 MaximumSubscribersReachedException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value,
Exemplo n.º 2
0
 Constants.Exceptions.StreamNotFound => new StreamNotFoundException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value, ex),
Exemplo n.º 3
0
 PersistentSubscriptionNotFoundException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value,
Exemplo n.º 4
0
 Constants.Exceptions.StreamDeleted => new StreamDeletedException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value ?? "<unknown>",
Exemplo n.º 5
0
 Constants.Exceptions.WrongExpectedVersion => new WrongExpectedVersionException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value,
Exemplo n.º 6
0
 Constants.Exceptions.ScavengeNotFound => new ScavengeNotFoundException(ex.Trailers
                                                                        .FirstOrDefault(x => x.Key == Constants.Exceptions.ScavengeId)?.Value),
Exemplo n.º 7
0
 RequiredMetadataPropertyMissingException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.MissingRequiredMetadataProperty)
     ?.Value, ex),
Exemplo n.º 8
0
 Constants.Exceptions.UserNotFound => new UserNotFoundException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.LoginName)?.Value),
Exemplo n.º 9
0
 PersistentSubscriptionDroppedByServerException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value,
 [Constants.Exceptions.NotLeader]    = ex => new NotLeaderException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.LeaderEndpointHost)?.Value !,