public ProblemDetails HandleDomainExceptions(DomainException exception) { var specificHandler = GetHandlerForExceptionType(exception); if (specificHandler == null) { return(new DefaultDomainExceptionHandler().Handle(exception, showDetails)); } return(specificHandler.Handle(exception, showDetails)); }
public ProblemDetails Handle(DomainException e, bool showDetails) { return(HandleException((T)e, showDetails)); }