# BuildFailedException

> Constructs a BuildFailedException object.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Build](/engine/6000.0/script-reference/unityeditor/build.md)
* **Assembly:** UnityEditor

## BuildFailedException(string)

Constructs a BuildFailedException object.

```csharp
public BuildFailedException(string message)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A string of text describing the error that caused the build to fail.

## BuildFailedException(Exception)

Constructs a BuildFailedException object.

```csharp
public BuildFailedException(Exception innerException)
```

### Parameters

**** (\[Exception]\(https\://learn.microsoft.com/dotnet/api/system.exception)): The exception that caused the build to fail.
