# AWSProvisioningException Constructors

- Package: [Aspire.Hosting.AWS](/reference/api/csharp/aspire.hosting.aws.md)
- Type: [AWSProvisioningException](/reference/api/csharp/aspire.hosting.aws/awsprovisioningexception.md)
- Kind: `Constructors`
- Members: `1`

Represents errors that occur during application execution.

## AWSProvisioningException(string, Exception?)

- Name: `Constructor(string, Exception?)`

```csharp
public class AWSProvisioningException
{
    public AWSProvisioningException(
        string message,
        Exception? innerException = null)
    {
        // ...
    }
}
```

## Parameters

- `message` (`string`)
- `innerException` (`Exception?`) `optional`
