# InvalidMessageFrameException Constructors

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

## InvalidMessageFrameException {#constructor-06318cb5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.invalidmessageframeexception/constructors/constructor-06318cb5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Messaging/InvalidMessageFrameException.cs#L16-L18)

```csharp
public InvalidMessageFrameException()
```

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

## InvalidMessageFrameException(string) {#constructor-string-3446a6ef}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.messaging.invalidmessageframeexception/constructors/constructor-string-3446a6ef/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Messaging/InvalidMessageFrameException.cs#L24-L26)

```csharp
public InvalidMessageFrameException(string message)
```

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

### Parameters

- `message` (`string`): The message that describes the error.

## InvalidMessageFrameException(string, Exception) {#constructor-string-system-exception-a5dbbb15}

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Messaging/InvalidMessageFrameException.cs#L33-L35)

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

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

### Parameters

- `message` (`string`): The message that describes the error.
- `innerException` (`Exception`): The exception that is the cause of the current exception.
