## FormatNotSupportedException class

The exception that is thrown when the format of a document is not recognized or not supported.

```csharp
public class FormatNotSupportedException : AsposeException
```

## Constructors

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

## Properties

| Name | Description |
| --- | --- |
| [ErrorDetails](../../aspose.email/asposeexception/errordetails/) { get; } | Gets additional information about the error, if the operation provides any. |
| override [Message](../../aspose.email/asposeexception/message/) { get; } | Gets the message that describes the error. |

## Methods

| Name | Description |
| --- | --- |
| override [ToString](../../aspose.email/asposeexception/tostring/)() | Returns the type, the message and the stack trace of the exception. |

### See Also

* class [AsposeException](../asposeexception/)
* namespace [Aspose.Email](../../aspose.email/)
* assembly [Aspose.Email](../../)


