---
title: "PlanException"
description: "Indicates that a BuildPlan cannot be prepared."
kind: "exception"
id: "example.runtime.PlanException"
module: "runtime-kit"
version: "1.0"
---

# PlanException

## API at a glance

- PlanException(String): Creates a failure with an explanation suitable for the build log.

[runtime-kit](../../index.md) › [example.runtime](index.md) · Every page: [llms.txt](../../llms.txt)

Exception in [`example.runtime`](index.md).

```java
public final class PlanException extends Exception
```

Inheritance: `Object` > `Throwable` > `Exception` > `PlanException`

Indicates that a [`BuildPlan`](BuildPlan.md) cannot be prepared.

**See also**

- [Prepare your first build](../../guides/prepare-a-build.md)

## Constructors

### PlanException(String)

```java
public PlanException(String reason)
```

Creates a failure with an explanation suitable for the build log.

**Parameters**

- `reason` `String`: the rejected setting

## Inherited members

- From class `Throwable`: `addSuppressed`, `fillInStackTrace`, `getCause`, `getLocalizedMessage`, `getMessage`, `getStackTrace`, `getSuppressed`, `initCause`, `printStackTrace`, `printStackTrace`, `printStackTrace`, `setStackTrace`, `toString`
- From class `Object`: `equals`, `getClass`, `hashCode`, `notify`, `notifyAll`, `wait`, `wait`, `wait`
