From cbaa5edd2e7a7dd28fcc4ab8fa9dd6364f904de8 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 29 Nov 2022 19:06:31 +0000 Subject: [PATCH] Add default constructor for exceptions --- VpSharp/src/Exceptions/UserNotFoundException.cs | 10 +++++++++- VpSharp/src/Exceptions/WorldNotFoundException.cs | 9 +++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/VpSharp/src/Exceptions/UserNotFoundException.cs b/VpSharp/src/Exceptions/UserNotFoundException.cs index 61f9e5b..efaa9a5 100644 --- a/VpSharp/src/Exceptions/UserNotFoundException.cs +++ b/VpSharp/src/Exceptions/UserNotFoundException.cs @@ -1,7 +1,15 @@ namespace VpSharp.Exceptions; +/// +/// The exception that is thrown when a user could not be found. +/// public sealed class UserNotFoundException : Exception { + /// + public UserNotFoundException() + { + } + /// public UserNotFoundException(string message) : base(message) @@ -13,4 +21,4 @@ public sealed class UserNotFoundException : Exception : base(message, innerException) { } -} \ No newline at end of file +} diff --git a/VpSharp/src/Exceptions/WorldNotFoundException.cs b/VpSharp/src/Exceptions/WorldNotFoundException.cs index 3b006e9..4c12203 100644 --- a/VpSharp/src/Exceptions/WorldNotFoundException.cs +++ b/VpSharp/src/Exceptions/WorldNotFoundException.cs @@ -5,15 +5,20 @@ /// public sealed class WorldNotFoundException : Exception { + /// + public WorldNotFoundException() + { + } + /// public WorldNotFoundException(string worldName) : base($"No world with the name {worldName} was found.") { } - + /// public WorldNotFoundException(string worldName, Exception innerException) : base($"No world with the name {worldName} was found.", innerException) { } -} \ No newline at end of file +}