Beispiel #1
0
 MaximumSubscribersReachedException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value,
Beispiel #2
0
 Constants.Exceptions.StreamNotFound => new StreamNotFoundException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value, ex),
Beispiel #3
0
 PersistentSubscriptionNotFoundException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value,
Beispiel #4
0
 Constants.Exceptions.StreamDeleted => new StreamDeletedException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value ?? "<unknown>",
Beispiel #5
0
 Constants.Exceptions.WrongExpectedVersion => new WrongExpectedVersionException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.StreamName)?.Value,
Beispiel #6
0
 Constants.Exceptions.ScavengeNotFound => new ScavengeNotFoundException(ex.Trailers
                                                                        .FirstOrDefault(x => x.Key == Constants.Exceptions.ScavengeId)?.Value),
Beispiel #7
0
 RequiredMetadataPropertyMissingException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.MissingRequiredMetadataProperty)
     ?.Value, ex),
Beispiel #8
0
 Constants.Exceptions.UserNotFound => new UserNotFoundException(
     ex.Trailers.FirstOrDefault(x => x.Key == Constants.Exceptions.LoginName)?.Value),
Beispiel #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 !,