共用方式為


ErrorCodes.ExceptionFromCode(Int32, String, Object, Object) Method

Definition

Creates a RemoteInvocationException with a specified error code.

public static StreamJsonRpc.RemoteInvocationException ExceptionFromCode (int errorCode, string? message = default, object? errorData = default, object? deserializedErrorData = default);
static member ExceptionFromCode : int * string * obj * obj -> StreamJsonRpc.RemoteInvocationException
Public Shared Function ExceptionFromCode (errorCode As Integer, Optional message As String = Nothing, Optional errorData As Object = Nothing, Optional deserializedErrorData As Object = Nothing) As RemoteInvocationException

Parameters

errorCode
Int32

The error code.

message
String

The message for the exception.

errorData
Object

The error data for the exception.

deserializedErrorData
Object

The deserialized error data for the exception.

Returns

the RemoteInvocationException.

Applies to