ErrorCodes.ExceptionFromCode(Int32, String, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.