Partager via


ErrorCodes Class

Definition

Defines error codes to use for ErrorCode. Servers should throw RemoteInvocationException with the appropriate error code when an existing .NET exception does not exist for the condition being reported.

See https://github.com/microsoft/vs-streamjsonrpc/blob/master/doc/exceptions.md.

public ref class ErrorCodes abstract sealed
public static class ErrorCodes
type ErrorCodes = class
Public Class ErrorCodes
Inheritance
ErrorCodes

Remarks

None of the error codes defined herein should be in the range [-32768, -32000], since those values are reserved by the JSON-RPC protocol.

See https://www.jsonrpc.org/specification#error_object.

Fields

FileAlreadyExists

The error code indicating that a file already exists.

Methods

ExceptionFromCode(Int32, String, Object, Object)

Creates a RemoteInvocationException with a specified error code.

Applies to