# LicenseException

The `LicenseException` class represents an exception that can be thrown by the Dynamsoft License 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 license operations.

## Definition

*Package:* com.dynamsoft.license

```java
public class LicenseException extends CoreException
```

## Inheritance

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

## Inherited Members

Since `LicenseException` 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.

