FileAccessViolationException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.ms.System.SystemException, com.aspose.ms.System.IO.IOException

public class FileAccessViolationException extends System.IO.IOException

This exception wile be thrown when the file open and locked by another caller.

Constructors

Constructor Description
FileAccessViolationException() Initializes a new instance of the class with default error message.
FileAccessViolationException(String message) Initializes a new instance of the class with a specified error message.
FileAccessViolationException(String message, Throwable innerException) Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

FileAccessViolationException()

public FileAccessViolationException()

Initializes a new instance of the class with default error message.

FileAccessViolationException(String message)

public FileAccessViolationException(String message)

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

Parameters:

Parameter Type Description
message java.lang.String Error message.

FileAccessViolationException(String message, Throwable innerException)

public FileAccessViolationException(String message, Throwable innerException)

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

Parameters:

Parameter Type Description
message java.lang.String The error message that explains the reason for the exception.
innerException java.lang.Throwable The exception that is the cause of the current exception. If the innerException parameter is not a NULL reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.