Redigera

Dela via


ExceptionCodec Class

Definition

Serializer for Exception types.

[Orleans.Alias("Exception")]
[Orleans.RegisterCopier]
[Orleans.RegisterSerializer]
public sealed class ExceptionCodec : Orleans.Serialization.Cloning.IBaseCopier<Exception>, Orleans.Serialization.Codecs.IFieldCodec<Exception>, Orleans.Serialization.Serializers.IBaseCodec<Exception>, Orleans.Serialization.Serializers.IBaseCodec<object>, Orleans.Serialization.Serializers.IGeneralizedBaseCodec, Orleans.Serialization.Serializers.IGeneralizedCodec
[<Orleans.Alias("Exception")>]
[<Orleans.RegisterCopier>]
[<Orleans.RegisterSerializer>]
type ExceptionCodec = class
    interface IFieldCodec<Exception>
    interface IFieldCodec
    interface IBaseCodec<Exception>
    interface IBaseCodec
    interface IGeneralizedCodec
    interface IGeneralizedBaseCodec
    interface IBaseCodec<obj>
    interface IBaseCopier<Exception>
    interface IBaseCopier
Public NotInheritable Class ExceptionCodec
Implements IBaseCodec(Of Exception), IBaseCodec(Of Object), IBaseCopier(Of Exception), IFieldCodec(Of Exception), IGeneralizedBaseCodec, IGeneralizedCodec
Inheritance
ExceptionCodec
Attributes
Implements

Constructors

ExceptionCodec(TypeConverter, IFieldCodec<Dictionary<Object,Object>>, IDeepCopier<Dictionary<Object,Object>>, IDeepCopier<Exception>, IOptions<ExceptionSerializationOptions>)

Initializes a new instance of the ExceptionCodec class.

Methods

DeepCopy(Exception, Exception, CopyContext)

Clones members from input and copies them to output.

Deserialize<TInput>(Reader<TInput>, Exception)

Deserializes into the provided value.

Deserialize<TInput>(Reader<TInput>, Object)

Deserializes into the provided value.

DeserializeException<TInput>(Reader<TInput>, Field)
GetDataProperty(Exception)

Gets the data property from the provided exception.

GetObjectData(Exception)

Gets the object data from the provided exception.

IsSupportedType(Type)

Determines whether the specified type is supported by this instance.

ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

Serialize<TBufferWriter>(Writer<TBufferWriter>, Exception)

Serializes the provided value.

Serialize<TBufferWriter>(Writer<TBufferWriter>, Object)

Serializes the provided value.

SerializeException<TBufferWriter>(Writer<TBufferWriter>, Exception) System.Object.SerializeException``1(Orleans.Serialization.Buffers.Writer{``0}@,System.Exception)
SetBaseProperties(Exception, String, String, Exception, Int32, Dictionary<Object,Object>)

Sets base properties on the provided exception.

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, Exception)

Writes a field.

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, Object)

Writes a field using the provided untyped value. The type must still match the codec instance!

Explicit Interface Implementations

IFieldCodec.ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

Applies to