# ErrorHandlingCallback

Import: `import com.install4j.api.beans.ErrorHandlingCallback;`

```java
interface ErrorHandlingCallback
```

Callback for deciding how an error should be handled.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`errorOccurred(Exception)`](#erroroccurred-exception) | `ErrorHandlingMode` | Called when an error has occurred. |

### errorOccurred(Exception)

```java
ErrorHandlingMode errorOccurred(Exception e)
```

Called when an error has occurred.


**Parameters:**

- `e` — the exception

**Returns:** the desired way to proceed

