/// <summary> /// Map you custom exception against a <see cref="HttpStatusCode"/> /// </summary> public ConfigureProblemDetails MapException <TException>(HttpStatusCode code) where TException : Exception { DetailsHelper.MapException <TException>(code); return(this); }
/// <summary> /// Adds detailed exception to <see cref="ProblemDetails"/> extensions list. /// Not recommended for production /// <remarks>default: false</remarks> /// </summary> public ConfigureProblemDetails ShowErrorDetails(bool show) { DetailsHelper.SetShowErrorDetails(show); return(this); }
public ConfigureProblemDetails MapStatusToTitle(HttpStatusCode code, string title) { DetailsHelper.MapStatusToTitle(code, title); return(this); }