Skip to content

Commit ad80f08

Browse files
author
Martin Fischer
committed
* BytecodeApi.Extensions.ExceptionExtensions.AppendStackTrace overload
1 parent 702ec59 commit ad80f08

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

BytecodeApi/Extensions/ExceptionExtensions.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ public static string GetFullStackTrace(this Exception exception, out int count)
7979
/// <param name="exception">The <see cref="Exception" /> to append <paramref name="stackTrace" /> to.</param>
8080
/// <param name="stackTrace">The <see cref="StackTrace" /> to append to <paramref name="exception" />.</param>
8181
public static void AppendStackTrace(this Exception exception, StackTrace stackTrace)
82+
{
83+
exception.AppendStackTrace(stackTrace.ToString());
84+
}
85+
/// <summary>
86+
/// Appends the specified stack trace to this <see cref="Exception" />.
87+
/// </summary>
88+
/// <param name="exception">The <see cref="Exception" /> to append <paramref name="stackTrace" /> to.</param>
89+
/// <param name="stackTrace">The stack trace to append to <paramref name="exception" />.</param>
90+
public static void AppendStackTrace(this Exception exception, string stackTrace)
8291
{
8392
Check.ArgumentNull(exception);
8493
Check.ArgumentNull(stackTrace);

0 commit comments

Comments
 (0)