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

The DNG exception class
## Constructors

| Constructor | Description |
| --- | --- |
| [DngException(String message)](#DngException-java.lang.String-) | Initializes a new instance of the `DngException` class. |
| [DngException(String message, System.Exception innerException)](#DngException-java.lang.String-com.aspose.ms.System.Exception-) | Initializes a new instance of the `DngException` class. |
### DngException(String message) {#DngException-java.lang.String-}
```
public DngException(String message)
```


Initializes a new instance of the `DngException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The message that describes the error. |

### DngException(String message, System.Exception innerException) {#DngException-java.lang.String-com.aspose.ms.System.Exception-}
```
public DngException(String message, System.Exception innerException)
```


Initializes a new instance of the `DngException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The error message that explains the reason for the exception. |
| innerException | com.aspose.ms.System.Exception | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |

