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
payloadstringThe payload that could not be deserialized.
targetTypeTypeThe 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
TargetType
Target type into which the payload was intended to be deserialized.
public Type TargetType { get; }