---
title: "CadException"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.cadexceptions.imageformats/cadexception/"
product: "Aspose.CAD for Java"
description: "The Cad exception."
---


**Inheritance:** java.lang.Object, com.aspose.cad.cadexceptions.ImageException

The Cad exception.

## Constructors

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

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

Initializes a new instance of the CadException class.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| message | String | The message. |

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

Initializes a new instance of the CadException class.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| message | String | The exception message. |
| innerException | Throwable | The inner exception. |

