**Inheritance:**
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception
```
public class PngImageException extends System.Exception
```

The png image exception.
## Constructors

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


Initializes a new instance of the `PngImageException` class.

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

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


Initializes a new instance of the `PngImageException` class.

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

