Skip to content

Customize OutOfRetriesException #646

Description

@KamaniAman

we have ReactiveRectryPolicy (Basic/Filtered). Whenever retries are exhausted, it wraps the original exception with OutOfRetriesException.

How can I unwrap it?

Is there any handler available which can map it to my custom exception. For Example, We have ErrorDecoder, in which based on the http exception, I can map it to my custom exception. But this is only intercepted for http request. Which basically executes after each retry. And after all the retries, It executes the onErrorResume <- wrapWithOutOfRetriesLog <- RetryPublisherHttpClient. Which I can't intercept.

So, is there any way where I can convert OutOfRetriesException to my custom exception?

@kptfh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions