# FailureStrategy

Import: `import com.install4j.api.beaninfo.FailureStrategy;`

```java
public final enum FailureStrategy
```

Enumeration class for all possible failure strategies of actions.


**See also:**

- [ActionBeanInfo.setDefaultFailureStrategy](ActionBeanInfo.md#setdefaultfailurestrategy-failurestrategy)

## Constants

### CONTINUE

Continue after a failure.

### QUIT

Quit after a failure.

### ASK_USER

Ask the user what to do when an action fails. By default, The user can retry the action, ignore the error or
quit the installer application. The enabled questions can be selected in the IDE, the questions that are
selected by default are configured with [`ActionBeanInfo.setAskUserFailureDefaults`](ActionBeanInfo.md#setaskuserfailuredefaults-askuserfailuredefaults).

### ASK_USER_RETRY

Ask the user whether to continue, to retry or to quit.

### RETURN_TO_SCREEN

No further actions will be executed, and the previous screen will be displayed again.
If the action is contained in the startup node, the first screen will be displayed.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`values()`](#values) | `FailureStrategy[]` |  |
| [`valueOf(String)`](#valueof-string) | `FailureStrategy` |  |
| [`getId()`](#getid) | `int` | Convert to an int value. |

### values()

```java
public static FailureStrategy[] values()
```

### valueOf(String)

```java
public static FailureStrategy valueOf(String name)
```

### getId()

```java
public int getId()
```

Convert to an int value.


**Returns:** the int value

