forked from ddrilling/AsbCloudServer
27 lines
678 B
C#
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;
|
|
}
|
|
}
|
|
}
|