语言

RemoteInvocationException 类

定义

远程 RPC 异常,指示服务器目标方法引发异常。

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

注解

可以在属性上ErrorCodeErrorData找到目标方法异常的详细信息。

构造函数

名称 说明
RemoteInvocationException(SerializationInfo, StreamingContext)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, Int32, Exception)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, Int32, Object, Object)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, Int32, Object)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, String, String, JToken)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, String, String)

初始化 RemoteInvocationException 类的新实例。

属性

名称 说明
DeserializedErrorData

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

ErrorCode

获取响应中字段的值 error.code 。

ErrorData

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

RemoteErrorCode

获取响应中字段的值 error.data.code (如果该值为字符串或整数)。

RemoteStackTrace

获取响应中字段的值 error.data.stack (如果该值为字符串)。

方法

名称 说明
GetObjectData(SerializationInfo, StreamingContext)

远程 RPC 异常,指示服务器目标方法引发异常。

GetObjectData(SerializationInfo, StreamingContext)

远程 RPC 异常,指示服务器目标方法引发异常。

(继承自 RemoteRpcException)
ToString()

远程 RPC 异常,指示服务器目标方法引发异常。

适用于