2022-01-18 11:04:15 +05:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Exceptions
|
|
|
|
|
{
|
2022-02-12 11:28:16 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Argument validation fail Exception
|
|
|
|
|
/// </summary>
|
2023-06-29 16:31:37 +05:00
|
|
|
|
public class ArgumentInvalidException : Exception
|
2022-01-18 11:04:15 +05:00
|
|
|
|
{
|
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-01-18 11:04:15 +05:00
|
|
|
|
|
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)
|
2022-01-18 11:04:15 +05:00
|
|
|
|
{
|
|
|
|
|
ParamName = paramName;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|