語言

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。

建構函式

名稱 Description
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 類別的新執行個體。

屬性

名稱 Description
DeserializedErrorData

如果錯誤回應有提供,則會取得 error.data 錯誤回應中的值。

ErrorCode

在回應中取得場的 error.code 值。

ErrorData

如果錯誤回應有提供,則會取得 error.data 錯誤回應中的值。

RemoteErrorCode

取得回應中欄位的值 error.data.code ,若該值是字串或整數。

RemoteStackTrace

如果該值是字串,則會取得回應中欄位 error.data.stack 的值。

方法

名稱 Description
GetObjectData(SerializationInfo, StreamingContext)

遠端 RPC 例外,表示伺服器目標方法拋出了例外。

GetObjectData(SerializationInfo, StreamingContext)

遠端 RPC 例外,表示伺服器目標方法拋出了例外。

(繼承來源 RemoteRpcException)
ToString()

遠端 RPC 例外,表示伺服器目標方法拋出了例外。

適用於