public ProblemDetails Map(ApiProblemDetailsException exception, ProblemDetailsHelper problemDetailsHelper) { if (!Handles(exception)) { throw new InvalidCastException("Could not map problem details!"); } return(MapException(exception, problemDetailsHelper)); }
public abstract ProblemDetails MapException(ApiProblemDetailsException exception, ProblemDetailsHelper problemDetailsHelper);
public abstract bool HandlesException(ApiProblemDetailsException exception);