using System;

namespace CPF.Mac.CoreText
{
	internal static class ConstructorError
	{
		public static Exception ArgumentNull(object self, string argument)
		{
			GC.SuppressFinalize(self);
			return new ArgumentNullException(argument);
		}

		public static Exception Unknown(object self)
		{
			GC.SuppressFinalize(self);
			return new ArgumentException($"Unable to create {self.GetType().Name} instance.");
		}
	}
}
