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

20 lines
618 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 given argument is invalid
/// </summary>
public class InvalidArgumentException : ResponseException
{
public override Types error_type => Types.InvalidArgument;
public override string message => "invalid argument";
public string reason { get; }
public string argument { get; }
public InvalidArgumentException(string argument, string reason)
{
this.argument = argument;
this.reason = reason;
}
}
}