Class PythonExceptionConverter
JsonConverter that serializes a Python.Runtime.PythonException.
Inherited Members
Namespace: Tableau.Migration.JsonConverters
Assembly: Tableau.Migration.dll
Syntax
public class PythonExceptionConverter : JsonConverter<PythonException>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads the JSON representation of the object.
Declaration
public override PythonException? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonReader | reader | The reader to read from. |
Type | typeToConvert | The type of the object. |
JsonSerializerOptions | options | The serializer options. |
Returns
Type | Description |
---|---|
PythonException | The deserialized object. |
Overrides
Write(Utf8JsonWriter, PythonException, JsonSerializerOptions)
Writes the JSON representation of the object.
Declaration
public override void Write(Utf8JsonWriter writer, PythonException value, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8JsonWriter | writer | The writer to write to. |
PythonException | value | The object to write. |
JsonSerializerOptions | options | The serializer options. |