Share via


RpcArgumentDeserializationException Class

Definition

An exception thrown from TryGetArgumentByNameOrIndex(String, Int32, Type, Object) when the argument cannot be deserialized to the requested type, typically due to an incompatibility or exception thrown from the deserializer.

[System.Serializable]
public class RpcArgumentDeserializationException : StreamJsonRpc.RemoteRpcException
[<System.Serializable>]
type RpcArgumentDeserializationException = class
    inherit RemoteRpcException
Public Class RpcArgumentDeserializationException
Inherits RemoteRpcException
Inheritance
RpcArgumentDeserializationException
Attributes

Constructors

RpcArgumentDeserializationException(SerializationInfo, StreamingContext)

Initializes a new instance of the RpcArgumentDeserializationException class.

RpcArgumentDeserializationException(String)

Initializes a new instance of the RpcArgumentDeserializationException class.

RpcArgumentDeserializationException(String, Exception)

Initializes a new instance of the RpcArgumentDeserializationException class.

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

Initializes a new instance of the RpcArgumentDeserializationException class.

Properties

ArgumentName

Gets the name of the argument from the JSON-RPC request that failed to deserialize, if available.

ArgumentPosition

Gets the 0-based index of the argument from the JSON-RPC request that failed to deserialize, if available.

DeserializedErrorData

Gets or sets the error.data value in the error response, if one was provided.

(Inherited from RemoteRpcException)
DeserializedType

Gets the Type to which deserialization of the argument was attempted.

ErrorCode

Gets or sets the value of the error.code field in the response, if one is available.

(Inherited from RemoteRpcException)
ErrorData

Gets or sets the error.data value in the error response, if one was provided.

(Inherited from RemoteRpcException)

Methods

GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

When overridden in a derived class, sets the SerializationInfo with information about the exception.

Applies to