**Inheritance:**
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, [com.aspose.imaging.coreexceptions.FrameworkException](../../com.aspose.imaging.coreexceptions/frameworkexception)
```
public class XmpException extends FrameworkException
```

The exception that is thrown when XMP has invalid structure.
## Constructors

| Constructor | Description |
| --- | --- |
| [XmpException()](#XmpException--) | Initializes a new instance of the `XmpException` class. |
| [XmpException(String message)](#XmpException-java.lang.String-) | Initializes a new instance of the `XmpException` class. |
| [XmpException(String message, Throwable innerException)](#XmpException-java.lang.String-java.lang.Throwable-) | Initializes a new instance of the `XmpException` class. |
### XmpException() {#XmpException--}
```
public XmpException()
```


Initializes a new instance of the `XmpException` class.

### XmpException(String message) {#XmpException-java.lang.String-}
```
public XmpException(String message)
```


Initializes a new instance of the `XmpException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The message. |

### XmpException(String message, Throwable innerException) {#XmpException-java.lang.String-java.lang.Throwable-}
```
public XmpException(String message, Throwable innerException)
```


Initializes a new instance of the `XmpException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The message. |
| innerException | java.lang.Throwable | The inner exception. |

