You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
39
39
app.UseMvc();
40
40
}
41
41
```
42
-
### Policy handlers transitions
42
+
43
+
### Policy exception handler transitions
43
44
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.
44
45
Following handlers currently supported:
45
46
@@ -53,4 +54,12 @@ Following handlers currently supported:
53
54
| DisableFurtherLog | Prevent exception from being logged again in current middleware (for current request only) | NextHandler |
54
55
| Response | Modify response (set status code, headers and body) depending on further response builder configuration | NextHandler |
55
56
57
+
Sample of transitions:
56
58

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