File tree Expand file tree Collapse file tree
src/Winton.DomainModelling.AspNetCore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ public DomainExceptionFilter()
2626 /// <param name="exceptionMapper">
2727 /// A function to map custom domain exceptions, that are not handled by this class, to action
2828 /// results.
29+ /// This parameter can be used to extend the capabilities of this exception filter to meet an application's specific
30+ /// requirements.
2931 /// </param>
3032 public DomainExceptionFilter ( Func < DomainException , ErrorResponse , IActionResult > exceptionMapper )
3133 {
@@ -42,12 +44,6 @@ public void OnException(ExceptionContext context)
4244 }
4345 }
4446
45- /// <summary>
46- /// Maps a <see cref="DomainException" /> to an <see cref="IActionResult" />.
47- /// This method can be overriden by classes that extend this one to extend or redefine this mapping.
48- /// </summary>
49- /// <param name="domainException">The <see cref="DomainException" />.</param>
50- /// <returns>The <see cref="IActionResult" />.</returns>
5147 private IActionResult CreateResult ( DomainException domainException )
5248 {
5349 var errorResponse = new ErrorResponse ( domainException ) ;
Original file line number Diff line number Diff line change 44using System . Runtime . CompilerServices ;
55
66[ assembly: InternalsVisibleTo ( "Winton.DomainModelling.AspNetCore.Tests" ) ]
7- [ assembly: InternalsVisibleTo ( "DynamicProxyGenAssembly2" ) ]
You can’t perform that action at this time.
0 commit comments