20 lines
418 B
C#
20 lines
418 B
C#
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.");
|
|
}
|
|
}
|
|
}
|