FileNotFoundException
Leave feedback
On this page
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.
| 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. |
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. |
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. |
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. |
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. |
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. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.