Class SerializedExceptionJsonConverter
JsonConverter that de/serializes a SerializableException.
Inheritance
SerializedExceptionJsonConverter
Inherited Members
Namespace: Tableau.Migration.JsonConverters
Assembly: Tableau.Migration.dll
Syntax
public class SerializedExceptionJsonConverter : JsonConverter<SerializableException>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a SerializableException from JSON.
Declaration
public override SerializableException? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonReader | reader | The Utf8JsonReader to read from. |
Type | typeToConvert | The type of the object to convert. |
JsonSerializerOptions | options | The JsonSerializerOptions to use for deserialization. |
Returns
Type | Description |
---|---|
SerializableException | The deserialized SerializableException. |
Overrides
Write(Utf8JsonWriter, SerializableException, JsonSerializerOptions)
Writes a SerializableException to JSON.
Declaration
public override void Write(Utf8JsonWriter writer, SerializableException value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | The Utf8JsonWriter to write to. |
SerializableException | value | The SerializableException to write. |
JsonSerializerOptions | options | The JsonSerializerOptions to use for serialization. |