patbef-ServiceOutside/ServiceShared/Models/Response/Exception/MissingArgumentException.cs

18 lines
533 B
C#
Raw Permalink Normal View History

2024-01-29 16:27:34 +01:00
namespace ServiceShared.Models.Response.Exception
{
/// <summary>
/// This exception will be thrown when some of required argument is missing
/// </summary>
public class MissingArgumentException : ResponseException
{
public override Types error_type => Types.MissingArgument;
public override string message => "missing argument";
public string argument { get; }
public MissingArgumentException(string argument)
{
this.argument = argument;
}
}
}