/// <summary> /// Creates a new instance of ExceptionDetails from a System.Exception and a parent ExceptionDetails. /// </summary> internal static ExceptionDetails CreateWithoutStackInfo(Exception exception, ExceptionDetails parentExceptionDetails) { if (exception == null) { throw new ArgumentNullException(nameof(exception)); } var exceptionDetails = new External.ExceptionDetails() { id = exception.GetHashCode(), typeName = exception.GetType().FullName, message = exception.Message }; if (parentExceptionDetails != null) { exceptionDetails.outerId = parentExceptionDetails.id; } return(exceptionDetails); }
/// <summary> /// Creates a new instance of ExceptionDetails from a System.Exception and a parent ExceptionDetails. /// </summary> internal static ExceptionDetails CreateWithoutStackInfo(Exception exception, ExceptionDetails parentExceptionDetails) { if (exception == null) { throw new ArgumentNullException("exception"); } var exceptionDetails = new External.ExceptionDetails() { id = exception.GetHashCode(), typeName = exception.GetType().FullName, message = exception.Message }; if (parentExceptionDetails != null) { exceptionDetails.outerId = parentExceptionDetails.id; } return exceptionDetails; }