Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 3115bb2

Browse files
Ihar YakimushIhar Yakimush
authored andcommitted
update readme
1 parent fc01619 commit 3115bb2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
3939
app.UseMvc();
4040
}
4141
```
42-
### Policy handlers transitions
42+
43+
### Policy exception handler transitions
4344
When exception catched in middleware it try to apply handlers from first registered policy siutable for given exception. Policy contains a chain of handlers. Each handler perform some action and apply transition. To prevent re throw of exception handlers chain MUST ends with "Handled" transition.
4445
Following handlers currently supported:
4546

@@ -53,4 +54,12 @@ Following handlers currently supported:
5354
| DisableFurtherLog | Prevent exception from being logged again in current middleware (for current request only) | NextHandler |
5455
| Response | Modify response (set status code, headers and body) depending on further response builder configuration | NextHandler |
5556

57+
Sample of transitions:
5658
![alt text](/Transitions.png)
59+
60+
### Nuget
61+
| Package | Target | Comments |
62+
| ---------| ------------- | ------------- |
63+
| https://www.nuget.org/packages/Commmunity.AspNetCore.ExceptionHandling | netstandard2.0;netcoreapp2.1 | Main functionality |
64+
| https://www.nuget.org/packages/Commmunity.AspNetCore.ExceptionHandling.Mvc | netcoreapp2.1 | Alllow to use MVC IActionResult (including ObjectResult) in 'Response' handler |
65+
| https://www.nuget.org/packages/Commmunity.AspNetCore.ExceptionHandling.NewtonsoftJson | netstandard2.0; | Allow to set Json serialized object as a response body in 'Response' handler. Use it only if 'Commmunity.AspNetCore.ExceptionHandling.Mvc' usage not possible |

0 commit comments

Comments
 (0)