LanguageServerOutput.CreateErrorResult 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 new instance of LanguageServerOutput with the given error information.
public static Microsoft.PowerFx.LanguageServerProtocol.LanguageServerOutput CreateErrorResult(string id, Microsoft.PowerFx.LanguageServerProtocol.JsonRpcHelper.ErrorCode code, string message = default);
static member CreateErrorResult : string * Microsoft.PowerFx.LanguageServerProtocol.JsonRpcHelper.ErrorCode * string -> Microsoft.PowerFx.LanguageServerProtocol.LanguageServerOutput
Public Shared Function CreateErrorResult (id As String, code As JsonRpcHelper.ErrorCode, Optional message As String = Nothing) As LanguageServerOutput
Parameters
- id
- String
The id of the request that resulted in the error.
The error code.
- message
- String
The error message.
Returns
A new instance of LanguageServerOutput with the given error information.