FontNotFoundException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.groupdocs.watermark.exceptions.WatermarkException

public class FontNotFoundException extends WatermarkException

The exception that is thrown when requested font is not found.

Constructors

Constructor Description
FontNotFoundException() Initializes a new instance of the [FontNotFoundException](../../com.groupdocs.watermark.exceptions/fontnotfoundexception) class.
FontNotFoundException(String fontName) Initializes a new instance of the [FontNotFoundException](../../com.groupdocs.watermark.exceptions/fontnotfoundexception) class with a specified font name.

Methods

Method Description
getFontName() Gets the requested font name.

FontNotFoundException()

public FontNotFoundException()

Initializes a new instance of the [FontNotFoundException](../../com.groupdocs.watermark.exceptions/fontnotfoundexception) class.

FontNotFoundException(String fontName)

public FontNotFoundException(String fontName)

Initializes a new instance of the [FontNotFoundException](../../com.groupdocs.watermark.exceptions/fontnotfoundexception) class with a specified font name.

Parameters:

Parameter Type Description
fontName java.lang.String The requested font name.

getFontName()

public final String getFontName()

Gets the requested font name.

Returns: java.lang.String - The requested font name.