A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
1.0 KiB

// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
// Ported from: https://github.com/SixLabors/Fonts/blob/034a440aece357341fcc6b02db58ffbe153e54ef/src/SixLabors.Fonts
using System;
namespace Avalonia.Media.Fonts.Tables
{
/// <summary>
/// Exception font loading can throw if it finds a required table is missing during font loading.
/// </summary>
/// <seealso cref="Exception" />
public class MissingFontTableException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="MissingFontTableException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="table">The table.</param>
public MissingFontTableException(string message, string table)
: base(message)
=> Table = table;
/// <summary>
/// Gets the table where the error originated.
/// </summary>
public string Table { get; }
}
}