public ApiExceptionResponse(string message, Exception exception) : this()
 {
     Message = message;
     if (exception != null)
     {
         ExceptionDescription = new ExceptionDescription(exception);
     }
 }
Beispiel #2
0
        public ExceptionDescription(Exception exception) : this()
        {
            Type       = exception.GetType().ToString();
            Message    = exception.Message;
            StackTrace = exception.StackTrace;

            if (exception.InnerException != null)
            {
                InnerException = new ExceptionDescription(exception.InnerException);
            }
        }