mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-22 19:38:47 +00:00
Add default constructor for exceptions
This commit is contained in:
parent
20481a1bdd
commit
cbaa5edd2e
@ -1,7 +1,15 @@
|
|||||||
namespace VpSharp.Exceptions;
|
namespace VpSharp.Exceptions;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The exception that is thrown when a user could not be found.
|
||||||
|
/// </summary>
|
||||||
public sealed class UserNotFoundException : Exception
|
public sealed class UserNotFoundException : Exception
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public UserNotFoundException()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public UserNotFoundException(string message)
|
public UserNotFoundException(string message)
|
||||||
: base(message)
|
: base(message)
|
||||||
@ -13,4 +21,4 @@ public sealed class UserNotFoundException : Exception
|
|||||||
: base(message, innerException)
|
: base(message, innerException)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,15 +5,20 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class WorldNotFoundException : Exception
|
public sealed class WorldNotFoundException : Exception
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public WorldNotFoundException()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public WorldNotFoundException(string worldName)
|
public WorldNotFoundException(string worldName)
|
||||||
: base($"No world with the name {worldName} was found.")
|
: base($"No world with the name {worldName} was found.")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public WorldNotFoundException(string worldName, Exception innerException)
|
public WorldNotFoundException(string worldName, Exception innerException)
|
||||||
: base($"No world with the name {worldName} was found.", innerException)
|
: base($"No world with the name {worldName} was found.", innerException)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user