## FileAccessViolationException class

The exception that is thrown when a file cannot be opened because another process has opened and locked it.

```csharp
public class FileAccessViolationException : IOException
```

## Constructors

| Name | Description |
| --- | --- |
| [FileAccessViolationException](fileaccessviolationexception/#constructor)() | Initializes a new instance of the `FileAccessViolationException` class with a default error message. |
| [FileAccessViolationException](fileaccessviolationexception/#constructor_1)(string) | Initializes a new instance of the `FileAccessViolationException` class with the specified error message. |
| [FileAccessViolationException](fileaccessviolationexception/#constructor_2)(string, Exception) | Initializes a new instance of the `FileAccessViolationException` class with the specified error message and a reference to the exception that caused this one. |

### See Also

* namespace [Aspose.Email.Mapi](../../aspose.email.mapi/)
* assembly [Aspose.Email](../../)


