# Codec_AddAndThrowException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.codec-addandthrowexception/)

## Codec_AddAndThrowException(IBaseCodec&lt;Exception&gt;) {#constructor-orleans-serialization-serializers-ibasecodec-system-exception-4fcd9ece}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.codec-addandthrowexception/constructors/constructor-orleans-serialization-serializers-ibasecodec-system-exception-4fcd9ece/)

```csharp
public Codec_AddAndThrowException(IBaseCodec<Exception> _baseTypeSerializer)
```

### Parameters

- `_baseTypeSerializer` (`IBaseCodec<Exception>`)
