Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Attributes to configure error handling on handler chains #53

Closed
jeremydmiller opened this issue Mar 14, 2017 · 0 comments
Closed

Attributes to configure error handling on handler chains #53

jeremydmiller opened this issue Mar 14, 2017 · 0 comments

Comments

@jeremydmiller
Copy link
Member

Not sure about this one.

[MaximumAttempts(3)]
[RetryOn(typeof(SqlException)]
[RequeueOn(typeof(SqlException)]
[MoveToErrorQueue(typeof(SqlException))]
[RetryLaterOn(Type, seconds)]

or

[OnError(Type, mode, max attempts, delay)]

// where

* Type is the exception type
* mode = Retry/Requeue/MoveToErrorQueue/RetryLater
* attempts is optional and an int
* delay is optional, and would refer to the number of seconds to wait to retry it
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant