Table of Contents

Class CarrotSerializerException

Namespace
CarrotMQ.Core.Serialization
Assembly
CarrotMQ.Core.dll

Represents an exception thrown when deserialization of a payload into a specified target type fails.

public class CarrotSerializerException : Exception, ISerializable
Inheritance
CarrotSerializerException
Implements
Inherited Members

Constructors

CarrotSerializerException(string, Type)

Initializes a new instance of the CarrotSerializerException class.

public CarrotSerializerException(string payload, Type targetType)

Parameters

payload string

The payload that could not be deserialized.

targetType Type

The target type into which the payload was intended to be deserialized.

Properties

Payload

Payload that could not be deserialized.

public string Payload { get; }

Property Value

string

TargetType

Target type into which the payload was intended to be deserialized.

public Type TargetType { get; }

Property Value

Type