From 2e0cc109433c67623369608d2422340b082a5641 Mon Sep 17 00:00:00 2001 From: Seweryn Presnal Date: Mon, 12 Aug 2024 04:01:37 +0200 Subject: [PATCH] Implement standard constructors for UserErrorException --- ImperatorToCK3/Exceptions/ConverterException.cs | 5 +++-- ImperatorToCK3/Exceptions/UserErrorException.cs | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ImperatorToCK3/Exceptions/ConverterException.cs b/ImperatorToCK3/Exceptions/ConverterException.cs index 4ee219ec6..bd588546b 100644 --- a/ImperatorToCK3/Exceptions/ConverterException.cs +++ b/ImperatorToCK3/Exceptions/ConverterException.cs @@ -5,6 +5,7 @@ namespace ImperatorToCK3.Exceptions; public class ConverterException : Exception { public ConverterException(string message) : base(message) { } - public ConverterException(string? message, Exception? innerException) : base(message, innerException) { - } + public ConverterException(string? message, Exception? innerException) : base(message, innerException) { } + + public ConverterException() : base() { } } \ No newline at end of file diff --git a/ImperatorToCK3/Exceptions/UserErrorException.cs b/ImperatorToCK3/Exceptions/UserErrorException.cs index 5d4127595..a877a4e2c 100644 --- a/ImperatorToCK3/Exceptions/UserErrorException.cs +++ b/ImperatorToCK3/Exceptions/UserErrorException.cs @@ -2,9 +2,10 @@ namespace ImperatorToCK3.Exceptions; -class UserErrorException : ConverterException { +internal class UserErrorException : ConverterException { public UserErrorException(string message) : base(message) { } - public UserErrorException(string? message, Exception? innerException) : base(message, innerException) { - } + public UserErrorException(string? message, Exception? innerException) : base(message, innerException) { } + + public UserErrorException() : base() { } } \ No newline at end of file