// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System.Runtime.CompilerServices;
using SixLabors.Fonts.Unicode;
namespace SixLabors.Fonts {
///
/// Helper methods to throw exceptions
///
internal static class FontsThrowHelper
{
///
/// Throws an .
///
[MethodImpl(MethodImplOptions.NoInlining)]
public static T ThrowGlyphMissingException(CodePoint codePoint)
=> throw new GlyphMissingException(codePoint);
///
/// Throws an .
///
[MethodImpl(MethodImplOptions.NoInlining)]
public static void ThrowDefaultInstance()
=> throw new FontException("Cannot use the default value type instance to create a font.");
}
}