DD.WellWorkover.Cloud/AsbCloudApp/Exceptions/ArgumentInvalidException.cs

27 lines
678 B
C#
Raw Normal View History

using System;
namespace AsbCloudApp.Exceptions
{
/// <summary>
/// Argument validation fail Exception
/// </summary>
public class ArgumentInvalidException : Exception
{
2022-06-02 12:35:51 +05:00
/// <summary>
/// название аргумента
/// </summary>
2023-02-27 10:33:59 +05:00
public string ParamName { get; } = string.Empty;
2022-06-02 12:35:51 +05:00
/// <summary>
/// конструктор
/// </summary>
/// <param name="message"></param>
/// <param name="paramName"></param>
2023-02-27 10:33:59 +05:00
public ArgumentInvalidException(string message, string paramName)
2022-04-11 18:00:34 +05:00
: base(message)
{
ParamName = paramName;
}
}
}