# UndefinedVariableException

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

```java
public class UndefinedVariableException extends RuntimeException
```

Exception that is thrown by the `replaceVariables(...)` methods in [`AbstractBean`](AbstractBean.md) if a
variable cannot be found the [`VariableErrorHandling`](VariableErrorHandling.md) for the corresponding variable type is
[`VariableErrorHandling.EXCEPTION`](VariableErrorHandling.md#exception).

## Constructors

| Signature | Description |
|---|---|
| [`UndefinedVariableException(String)`](#undefinedvariableexception-string) | Will be called by the framework with the offending variable name as the message. |

### UndefinedVariableException(String)

```java
public UndefinedVariableException(String variableName)
```

Will be called by the framework with the offending variable name as the message.


**Parameters:**

- `variableName` — the name of the variable that cannot be found

