ProcessMessage
A ProcessMessage
object is represents a messages sent from a subprocess to the extension via JSON-RPC. ProcessMessage
objects are only used with a Process object which has been set up to use JSON-RPC communication.
Properties
method
The method name of the message, as a string. If the message is a response, this will be null
.
This property is readonly.
parameters
An object containing the parameters of the message. All values are JSON-encodable.
This property is readonly.
result
If the message is a response whose request succeeded, this will contain the result object of the response, otherwise this will be null
.
This property is readonly.
errorCode
If the message is a response whose request failed, this will contain the error code object of the response (as a number), otherwise this will be null
.
This property is readonly.
errorReason
If the message is a response whose request failed, this will contain the error reason object of the response (as a string), otherwise this will be null
.
This property is readonly.
errorData
If the message is a response whose request failed, this will contain the error data object of the response (if any), otherwise this will be null
.
This property is readonly.