DD.WellWorkover.Cloud/AsbCloudApp/Exceptions/ArgumentInvalidException.cs
2023-09-29 12:06:46 +05:00

27 lines
678 B
C#

using System;
namespace AsbCloudApp.Exceptions
{
/// <summary>
/// Argument validation fail Exception
/// </summary>
public class ArgumentInvalidException : Exception
{
/// <summary>
/// название аргумента
/// </summary>
public string ParamName { get; } = string.Empty;
/// <summary>
/// конструктор
/// </summary>
/// <param name="paramName"></param>
/// <param name="message"></param>
public ArgumentInvalidException(string paramName, string message)
: base(message)
{
ParamName = paramName;
}
}
}