MassTransit.MessageData.DecodeException: Thrown when the message body cannot be decoded.
MassTransit.MessageData.EncodingException: Thrown when the message body cannot be encoded.
MassTransit.MessageData.MissingContentTypeException: Thrown when the message does not have a content type.
MassTransit.MessageData.NotFoundException: Thrown when the message cannot be found in the message data store.
MassTransit.MessageData.OptimisticConcurrencyException: Thrown when the message data has been modified since it was last read.
MassTransit.MessageData.StoreException: Thrown when an error occurs while storing or retrieving the message data.
MassTransit.MessageData.TooLargeException: Thrown when the message size exceeds the maximum allowed size.
MassTransit.Pipeline.Filters.CircuitBreakerException: Thrown when the circuit breaker is open.
MassTransit.Pipeline.Filters.ConcurrencyException: Thrown when the filter concurrency limit is reached.
MassTransit.Pipeline.Filters.RetryException: Thrown when the filter retry limit is reached.
1条答案
按热度按时间9wbgstp71#
以下是MassTransit可能抛出的异常列表:
请注意,这不是一个详尽的列表,根据您的具体实现,MassTransit可能会抛出其他异常。
我建议您检查代码,看看是否添加了更多的异常,如果需要捕获它们,请进行检查。
记住例外不是口袋妖怪,你不必抓住他们所有:)
https://github.com/MassTransit/MassTransit/search?q=throw&type=commits