# ClusteringConformanceException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.testkit/orleans.clustering.testkit.clusteringconformanceexception/)

## ClusteringConformanceException(string) {#constructor-string-ce0e0907}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.testkit/orleans.clustering.testkit.clusteringconformanceexception/constructors/constructor-string-ce0e0907/)

[Source](https://github.com/dotnet/orleans/blob/8bc9fd244427351ad24ccc039a9e7642a42c1cc4/src/Orleans.Clustering.TestKit/ClusteringTestKitDiagnostics.cs#L7)

```csharp
public ClusteringConformanceException(string message)
```

Creates a conformance failure with actionable observation details.

### Parameters

- `message` (`string`)

## ClusteringConformanceException(string, Exception) {#constructor-string-system-exception-726c074d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.testkit/orleans.clustering.testkit.clusteringconformanceexception/constructors/constructor-string-system-exception-726c074d/)

[Source](https://github.com/dotnet/orleans/blob/8bc9fd244427351ad24ccc039a9e7642a42c1cc4/src/Orleans.Clustering.TestKit/ClusteringTestKitDiagnostics.cs#L10)

```csharp
public ClusteringConformanceException(string message, Exception innerException)
```

Creates a conformance failure retaining the underlying operation failure.

### Parameters

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