# SerializerException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/)

## SerializerException {#constructor-c69ebd19}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/constructors/constructor-c69ebd19/)

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

```csharp
public SerializerException()
```

Initializes a new instance of the [SerializerException](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/) class.

## SerializerException(string) {#constructor-string-7ed911bb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/constructors/constructor-string-7ed911bb/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Exceptions.cs#L30-L32)

```csharp
public SerializerException(string message)
```

Initializes a new instance of the [SerializerException](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/) class.

### Parameters

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

## SerializerException(string, Exception) {#constructor-string-system-exception-f5c187e1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/constructors/constructor-string-system-exception-f5c187e1/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Exceptions.cs#L39-L41)

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

Initializes a new instance of the [SerializerException](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.serializerexception/) class.

### Parameters

- `message` (`string`): The error message that explains the reason for the exception.
- `innerException` (`Exception`): The exception that is the cause of the current exception, or a null reference (`Nothing` in Visual Basic) if no inner exception is specified.
