public ExceptionProblemDetails(Exception error, int statusCode) : base(statusCode) { _exception = error ?? throw new ArgumentNullException(nameof(error)); Detail = _exception.Message; Title = TypeNameHelper.GetTypeDisplayName(_exception.GetType()); Instance = DeveloperProblemDetails.GetHelpLink(_exception); }
internal ExceptionProblemDetails WithDetails(IEnumerable <ExceptionDetails> details) { Errors = DeveloperProblemDetails.GetErrors(details).ToList(); return(this); }