# ConnectionFailedException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionfailedexception/)

## ConnectionFailedException {#constructor-f1d47c21}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionfailedexception/constructors/constructor-f1d47c21/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Networking/ConnectionFailedException.cs#L14-L16)

```csharp
public ConnectionFailedException()
```

Initializes a new instance of the [ConnectionFailedException](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionfailedexception/) class.

## ConnectionFailedException(string) {#constructor-string-09c9ef93}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionfailedexception/constructors/constructor-string-09c9ef93/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Networking/ConnectionFailedException.cs#L22-L24)

```csharp
public ConnectionFailedException(string message)
```

Initializes a new instance of the [ConnectionFailedException](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionfailedexception/) class.

### Parameters

- `message` (`string`): The message.

## ConnectionFailedException(string, Exception) {#constructor-string-system-exception-545e4c79}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionfailedexception/constructors/constructor-string-system-exception-545e4c79/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Networking/ConnectionFailedException.cs#L31-L33)

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

Initializes a new instance of the [ConnectionFailedException](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.connectionfailedexception/) class.

### Parameters

- `message` (`string`): The message.
- `innerException` (`Exception`): The inner exception.
