com.openhtmltopdf.pdfboxout.fontstore.FontNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openhtmltopdf-pdfbox Show documentation
Show all versions of openhtmltopdf-pdfbox Show documentation
Openhtmltopdf is a CSS 2.1 renderer written in Java. This artifact supports PDF output with Apache PDF-BOX 2.
The newest version!
package com.openhtmltopdf.pdfboxout.fontstore;
import com.openhtmltopdf.css.value.FontSpecification;
/**
* An extension thrown when a font isn't found.
*
* @author Quentin Ligier
**/
public class FontNotFoundException extends RuntimeException {
/**
* Constructs a new font not found exception with the specified font specification.
*
* @param fontSpecification The specification of the font that hasn't been found.
*/
public FontNotFoundException(final FontSpecification fontSpecification) {
super("No font for the following specification has been found: " + fontSpecification.toString());
}
}