namespace Monitoring.Core.Domain;
public class Description
{
	public const int MaxLength = 1000;
	public string Value { get; }

	private Description(string value)
	{
		Value = value;
	}

	public static Description Create(string value)
	{
		if (string.IsNullOrWhiteSpace(value))
		{
			throw new ArgumentNullException(nameof(value));
		}

		if (value.Length > MaxLength)
		{
			throw new ArgumentOutOfRangeException(nameof(value));
		}

		return new Description(value);
	}
}
