**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
```

压缩器异常。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [CompressorException(String message)](#CompressorException-java.lang.String-) | 初始化一个新的 `CompressorException` 类的实例。 |
| [CompressorException(String message, Throwable innerException)](#CompressorException-java.lang.String-java.lang.Throwable-) | 初始化一个新的 `CompressorException` 类的实例。 |
### CompressorException(String message) {#CompressorException-java.lang.String-}
```
public CompressorException(String message)
```


初始化一个新的 `CompressorException` 类的实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 消息 | java.lang.String | 异常消息。 |

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


初始化一个新的 `CompressorException` 类的实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 消息 | java.lang.String | 异常消息。 |
| innerException | java.lang.Throwable | 内部异常。 |

