From a03ab6acff8fbeb3d4b251bbf50b4d882db6f40f Mon Sep 17 00:00:00 2001 From: Melissa Date: Sat, 18 Jan 2020 12:06:54 +0000 Subject: [PATCH] Created AwardNotFoundException.cs and UserNotFoundException.cs --- DiscordBot/DiscordBot.csproj | 2 ++ .../Exceptions/AwardNotFoundException.cs | 25 +++++++++++++++++++ .../Exceptions/UserNotFoundException.cs | 25 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 DiscordBot/Exceptions/AwardNotFoundException.cs create mode 100644 DiscordBot/Exceptions/UserNotFoundException.cs diff --git a/DiscordBot/DiscordBot.csproj b/DiscordBot/DiscordBot.csproj index 62aed77..be41af2 100644 --- a/DiscordBot/DiscordBot.csproj +++ b/DiscordBot/DiscordBot.csproj @@ -230,6 +230,8 @@ + + diff --git a/DiscordBot/Exceptions/AwardNotFoundException.cs b/DiscordBot/Exceptions/AwardNotFoundException.cs new file mode 100644 index 0000000..eda009b --- /dev/null +++ b/DiscordBot/Exceptions/AwardNotFoundException.cs @@ -0,0 +1,25 @@ +using System; +using System.Runtime.Serialization; + +namespace DiscordBot.Exceptions +{ + [Serializable] + public class AwardNotFoundException : Exception + { + public AwardNotFoundException() + { + } + + public AwardNotFoundException(string message) : base(message) + { + } + + public AwardNotFoundException(string message, Exception inner) : base(message, inner) + { + } + + protected AwardNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} \ No newline at end of file diff --git a/DiscordBot/Exceptions/UserNotFoundException.cs b/DiscordBot/Exceptions/UserNotFoundException.cs new file mode 100644 index 0000000..96b25ef --- /dev/null +++ b/DiscordBot/Exceptions/UserNotFoundException.cs @@ -0,0 +1,25 @@ +using System; +using System.Runtime.Serialization; + +namespace DiscordBot.Exceptions +{ + [Serializable] + public class UserNotFoundException : Exception + { + public UserNotFoundException() + { + } + + public UserNotFoundException(string message) : base(message) + { + } + + public UserNotFoundException(string message, Exception inner) : base(message, inner) + { + } + + protected UserNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} \ No newline at end of file