Genral clean up and moving of code.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using FinancialApi.Domain.Exceptions;
|
||||
using Microsoft.AspNetCore.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
@@ -11,7 +12,7 @@ public class DomainExceptionHandler : IExceptionHandler
|
||||
CancellationToken cancellationToken
|
||||
)
|
||||
{
|
||||
if (exception is not (InvalidOperationException or ArgumentException))
|
||||
if (exception is not (InvalidOperationException or ArgumentException or GaapViolationException))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user