mirror of
https://github.com/DarthAffe/KeyboardAudioVisualizer.git
synced 2025-12-12 23:28:30 +00:00
24 lines
512 B
C#
24 lines
512 B
C#
using System;
|
|
|
|
namespace KeyboardAudioVisualizer.Helper
|
|
{
|
|
public static class ExceptionExtension
|
|
{
|
|
#region Methods
|
|
|
|
public static string GetFullMessage(this Exception ex, string message = "")
|
|
{
|
|
if (ex == null) return string.Empty;
|
|
|
|
message += ex.Message;
|
|
|
|
if (ex.InnerException != null)
|
|
message += "\r\nInnerException: " + GetFullMessage(ex.InnerException);
|
|
|
|
return message;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|