FileNotFoundException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.groupdocs.foundation.exception.GroupDocsException, com.groupdocs.viewer.exception.GroupDocsViewerException

public class FileNotFoundException extends GroupDocsViewerException

This exception is thrown when a file or directory is not found. It indicates that the specified file or directory does not exist or cannot be accessed.

Constructors

Constructor Description
FileNotFoundException(String message) Creates an instance of the FileNotFoundException class with the specified message.
FileNotFoundException(Path path) Initializes a new instance of the FileNotFoundException class with a specified file path.
FileNotFoundException(String messageTemplate, Object[] params) Creates a new instance of the FileNotFoundException class with a specified error message.
FileNotFoundException(Throwable cause) Instantiates a new instance of the FileNotFoundException class.
FileNotFoundException(String message, Throwable throwable) Initializes a new instance of the FileNotFoundException class with a specified error message.

FileNotFoundException(String message)

public FileNotFoundException(String message)

Creates an instance of the FileNotFoundException class with the specified message.

Parameters:

Parameter Type Description
message java.lang.String The message that describes the error.

FileNotFoundException(Path path)

public FileNotFoundException(Path path)

Initializes a new instance of the FileNotFoundException class with a specified file path.

Parameters:

Parameter Type Description
path java.nio.file.Path The path of the file that does not exist.

FileNotFoundException(String messageTemplate, Object[] params)

public FileNotFoundException(String messageTemplate, Object[] params)

Creates a new instance of the FileNotFoundException class with a specified error message.

Parameters:

Parameter Type Description
messageTemplate java.lang.String The message that describes the error.
params java.lang.Object[] The parameters that will be set into the error message.

FileNotFoundException(Throwable cause)

public FileNotFoundException(Throwable cause)

Instantiates a new instance of the FileNotFoundException class.

Parameters:

Parameter Type Description
cause java.lang.Throwable The cause of the exception.

FileNotFoundException(String message, Throwable throwable)

public FileNotFoundException(String message, Throwable throwable)

Initializes a new instance of the FileNotFoundException class with a specified error message.

Parameters:

Parameter Type Description
message java.lang.String The message that describes the error.
throwable java.lang.Throwable The throwable that caused the exception.