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 and Description |
|---|
FileNotFoundException(Path path)
Initializes a new instance of the FileNotFoundException class with a specified file path.
|
FileNotFoundException(String message)
Creates an instance of the FileNotFoundException class with the specified message.
|
FileNotFoundException(String messageTemplate,
Object... params)
Creates a new instance of the FileNotFoundException class with a specified error message.
|
FileNotFoundException(String message,
Throwable throwable)
Initializes a new instance of the FileNotFoundException class with a specified error message.
|
FileNotFoundException(Throwable cause)
Instantiates a new instance of the FileNotFoundException class.
|
toStringgetHResult, getInnerException, getType, setErrorCode, setHResultaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic FileNotFoundException(Path path)
Initializes a new instance of the FileNotFoundException class with a specified file path.
path - The path of the file that does not exist.public FileNotFoundException(String message)
Creates an instance of the FileNotFoundException class with the specified message.
message - The message that describes the error.public FileNotFoundException(String messageTemplate, Object... params)
Creates a new instance of the FileNotFoundException class with a specified error message.
messageTemplate - The message that describes the error.params - The parameters that will be set into the error message.public FileNotFoundException(String message, Throwable throwable)
Initializes a new instance of the FileNotFoundException class with a specified error message.
message - The message that describes the error.throwable - The throwable that caused the exception.public FileNotFoundException(Throwable cause)
Instantiates a new instance of the FileNotFoundException class.
cause - The cause of the exception.Copyright © 2025. All rights reserved.