mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-07-15 23:13:33 +08:00
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.");
|
|
}
|
|
}
|
|
}
|