Skip to content

Commit

Permalink
Created AwardNotFoundException.cs and UserNotFoundException.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MythicalCuddles committed Jan 18, 2020
1 parent fa31c2d commit a03ab6a
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DiscordBot/DiscordBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@
<Compile Include="Common\Preconditions\RequireGuildAttribute.cs" />
<Compile Include="Common\StringConfiguration.cs" />
<Compile Include="Database\DatabaseActivity.cs" />
<Compile Include="Exceptions\AwardNotFoundException.cs" />
<Compile Include="Exceptions\UserNotFoundException.cs" />
<Compile Include="Extensions\Extensions.cs" />
<Compile Include="Extensions\Methods.cs" />
<Compile Include="Extensions\StringExtensions.cs" />
Expand Down
25 changes: 25 additions & 0 deletions DiscordBot/Exceptions/AwardNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -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)
{
}
}
}
25 changes: 25 additions & 0 deletions DiscordBot/Exceptions/UserNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -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)
{
}
}
}

0 comments on commit a03ab6a

Please sign in to comment.