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