# ScaffoldException

> Represents a scaffold failure that must fail the Composer command or the console command that triggered it.

[API reference](/docs/api/index.md) › [Scaffold](/docs/extensions/scaffold/reference/index.md) › [Exception](/docs/extensions/scaffold/reference/exception/index.md) › ScaffoldException

| final class | `PHPForge\Scaffold\Exception\ScaffoldException` |
| --- | --- |
| Extends | [`RuntimeException`](https://www.php.net/manual/en/class.runtimeexception.php) |
| Source | [`src/Exception/ScaffoldException.php`](https://github.com/php-forge/scaffold/blob/main/src/Exception/ScaffoldException.php#L12) |

Represents a scaffold failure that must fail the Composer command or the console command that triggered it.