Add default constructor for exceptions

This commit is contained in:
Oliver Booth 2022-11-29 19:06:31 +00:00
parent 20481a1bdd
commit cbaa5edd2e
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,15 @@
namespace VpSharp.Exceptions;
/// <summary>
/// The exception that is thrown when a user could not be found.
/// </summary>
public sealed class UserNotFoundException : Exception
{
/// <inheritdoc />
public UserNotFoundException()
{
}
/// <inheritdoc />
public UserNotFoundException(string message)
: base(message)

View File

@ -5,6 +5,11 @@
/// </summary>
public sealed class WorldNotFoundException : Exception
{
/// <inheritdoc />
public WorldNotFoundException()
{
}
/// <inheritdoc />
public WorldNotFoundException(string worldName)
: base($"No world with the name {worldName} was found.")