# UtilityException

The `UtilityException` class represents an exception that can be thrown by the Dynamsoft Utility module. This class extends [`CoreException`](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/core-exception.md) and provides specific error handling for utility operations.

## Definition

*Package:* com.dynamsoft.utility

```java
public class UtilityException extends CoreException
```

## Inheritance

`UtilityException` -> [`CoreException`](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/core-exception.md)

## Inherited Members

Since `UtilityException` extends [`CoreException`](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/core-exception.md), it inherits all the properties and methods from the parent class, including:

- `getErrorCode()` - Returns the error code.
- `getErrorString()` - Returns the error string.

