**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 CompressorException extends FrameworkException
```

The compressor exception.
## Constructors

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


Initializes a new instance of the `CompressorException` class.

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

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


Initializes a new instance of the `CompressorException` class.

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

