public ProblemDetails HandleDomainExceptions(DomainException exception)
        {
            var specificHandler = GetHandlerForExceptionType(exception);

            if (specificHandler == null)
            {
                return(new DefaultDomainExceptionHandler().Handle(exception, showDetails));
            }

            return(specificHandler.Handle(exception, showDetails));
        }
Exemplo n.º 2
0
 public ProblemDetails Handle(DomainException e, bool showDetails)
 {
     return(HandleException((T)e, showDetails));
 }