Share via


LocalRpcException.ErrorCode Property

Definition

Gets or sets the value for the error.code property.

public int ErrorCode { get; set; }
member this.ErrorCode : int with get, set
Public Property ErrorCode As Integer

Property Value

Remarks

The default value is set to a special general error code: InvocationError. This may be set to a more meaningful error code for the application that allows the client to programatically respond to the error condition. Application-defined values should avoid the [-32768, -32000] range, which is reserved for the JSON-RPC protocol itself.

Applies to