Provide more context in exception messages

This commit is contained in:
Tyrrrz
2023-11-16 21:10:24 +02:00
parent a46bf9bf11
commit e89701e3f9
5 changed files with 33 additions and 19 deletions

View File

@@ -6,8 +6,8 @@ public class DiscordChatExporterException : Exception
{
public bool IsFatal { get; }
public DiscordChatExporterException(string message, bool isFatal = false)
: base(message)
public DiscordChatExporterException(string message, bool isFatal = false, Exception? innerException = null)
: base(message, innerException)
{
IsFatal = isFatal;
}