Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 internal ExceptionProblemDetails WithDetails(IEnumerable <ExceptionDetails> details)
 {
     Errors = DeveloperProblemDetails.GetErrors(details).ToList();
     return(this);
 }