语言

RpcArgumentDeserializationException 类

定义

当参数无法反序列化到请求的类型时引发 TryGetArgumentByNameOrIndex(String, Int32, Type, Object) 的异常,通常是由于反序列化程序引发的不兼容或异常。

[System.Serializable]
public class RpcArgumentDeserializationException : StreamJsonRpc.RemoteRpcException
[<System.Serializable>]
type RpcArgumentDeserializationException = class
    inherit RemoteRpcException
Public Class RpcArgumentDeserializationException
Inherits RemoteRpcException
继承
RpcArgumentDeserializationException
属性

构造函数

名称 说明
RpcArgumentDeserializationException(SerializationInfo, StreamingContext)

初始化 RpcArgumentDeserializationException 类的新实例。

RpcArgumentDeserializationException(String, Exception)

初始化 RpcArgumentDeserializationException 类的新实例。

RpcArgumentDeserializationException(String, Nullable<Int32>, Type, Exception)

初始化 RpcArgumentDeserializationException 类的新实例。

RpcArgumentDeserializationException(String)

初始化 RpcArgumentDeserializationException 类的新实例。

属性

名称 说明
ArgumentName

从无法反序列化的 JSON-RPC 请求中获取参数的名称(如果可用)。

ArgumentPosition

从无法反序列化的 JSON-RPC 请求中获取自变量的从 0 开始的索引(如果可用)。

DeserializedErrorData

获取或设置 error.data 错误响应中的值(如果已提供)。

(继承自 RemoteRpcException)
DeserializedType

Type获取尝试参数反序列化的项。

ErrorCode

获取或设置响应中字段的值 error.code (如果有)。

(继承自 RemoteRpcException)
ErrorData

获取或设置 error.data 错误响应中的值(如果已提供)。

(继承自 RemoteRpcException)

方法

名称 说明
GetObjectData(SerializationInfo, StreamingContext)

当参数无法反序列化到请求的类型时引发 TryGetArgumentByNameOrIndex(String, Int32, Type, Object) 的异常,通常是由于反序列化程序引发的不兼容或异常。

适用于