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
属性

注解

可以在 和 ErrorData 属性中找到ErrorCode目标方法异常的详细信息。

构造函数

RemoteInvocationException(SerializationInfo, StreamingContext)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, Int32, Exception)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, Int32, Object)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, Int32, Object, Object)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, String, String)

初始化 RemoteInvocationException 类的新实例。

RemoteInvocationException(String, String, String, JToken)

初始化 RemoteInvocationException 类的新实例。

属性

DeserializedErrorData

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

DeserializedErrorData

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

(继承自 RemoteRpcException)
ErrorCode

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

ErrorCode

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

(继承自 RemoteRpcException)
ErrorData

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

ErrorData

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

(继承自 RemoteRpcException)
RemoteErrorCode

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

RemoteStackTrace

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

方法

GetObjectData(SerializationInfo, StreamingContext)

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

GetObjectData(SerializationInfo, StreamingContext)

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

(继承自 RemoteRpcException)
ToString()

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

适用于