# UserCanceledException

Import: `import com.install4j.api.context.UserCanceledException;`

```java
public class UserCanceledException extends Exception
```

Installation methods throw this exception if the user cancels an operation.

## Constructors

| Signature | Description |
|---|---|
| [`UserCanceledException(String)`](#usercanceledexception-string) | Initializes a new instance with a message. |
| [`UserCanceledException()`](#usercanceledexception) | Initializes a new instance. |

### UserCanceledException(String)

```java
public UserCanceledException(String message)
```

Initializes a new instance with a message.


**Parameters:**

- `message` — the exception message

### UserCanceledException()

```java
public UserCanceledException()
```

Initializes a new instance.

