# Codec_AddAndThrowException

Package: [Microsoft.Orleans.Transactions.TestKit.Base](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Transactions.TestKit.Base)

```csharp
public sealed class Codec_AddAndThrowException : IFieldCodec, IFieldCodec<AddAndThrowException>, IBaseCodec, IBaseCodec<AddAndThrowException>
```

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Constructors

- [Codec_AddAndThrowException(IBaseCodec&lt;Exception&gt;)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.codec-addandthrowexception/constructors/constructor-orleans-serialization-serializers-ibasecodec-system-exception-4fcd9ece/)

## Methods

- [Deserialize(Reader&lt;TReaderInput&gt;, AddAndThrowException)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.codec-addandthrowexception/methods/deserialize-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-tran-d4aacbeb/)
- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.codec-addandthrowexception/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-d27ae2e0/)
- [Serialize(Writer&lt;TBufferWriter&gt;, AddAndThrowException)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.codec-addandthrowexception/methods/serialize-1-ref-orleans-serialization-buffers-writer-tbufferwriter-orleans-trans-0033d308/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, AddAndThrowException)](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.codec-addandthrowexception/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-63d4b10a/)
