/// <summary> /// Adds the exception to cause and set this segment to has fault. /// </summary> /// <param name="e">The exception to be added.</param> public void AddException(Exception e) { HasFault = true; Cause = new Cause(); Cause.AddException(AWSXRayRecorder.Instance.ExceptionSerializationStrategy.DescribeException(e, Subsegments)); }
/// <summary> /// Adds the exception to cause and set this segment to has fault. /// </summary> /// <param name="e">The exception to be added.</param> public void AddException(Exception e) { HasFault = true; Cause = new Cause(); Cause.AddException(e, Subsegments); }