Skip to content

Commit

Permalink
docs: Amend order
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Oct 14, 2024
1 parent adaabb2 commit 2383a73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/features/exception-handler.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ public class MyExceptionHandler : IExceptionHandler

If the `TryHandleAsync` method returns `true`, the exception is considered as handled and no other exception handler will be called. If it returns `false`, the next exception handler will be called, if available.

Therefore the order of registration is important. The first registered exception handler will be called first.

## Order of execution with NotificationHandlers
All exception handlers are executed before the `IJobNotificationHandler` for that specific job is called. Independent if the exception handler returns `true` or `false`, the `IJobNotificationHandler` will get the exception passed in.

0 comments on commit 2383a73

Please sign in to comment.