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;
}
}