electron-agent-bridge
Preparing search index...
@electron-agent-bridge/core
rpcError
Function rpcError
rpcError
(
id
:
string
|
number
|
null
,
error
:
RpcErrorObject
,
)
:
|
{
id
:
string
|
number
;
jsonrpc
:
"2.0"
;
result
:
unknown
}
|
{
error
:
{
code
:
number
;
data
?:
{
code
:
string
;
hint
?:
string
}
;
message
:
string
;
}
;
id
:
string
|
number
|
null
;
jsonrpc
:
"2.0"
;
}
Build a failure response.
id
is null when the request could not be parsed.
Parameters
id
:
string
|
number
|
null
error
:
RpcErrorObject
Returns
|
{
id
:
string
|
number
;
jsonrpc
:
"2.0"
;
result
:
unknown
}
|
{
error
:
{
code
:
number
;
data
?:
{
code
:
string
;
hint
?:
string
}
;
message
:
string
;
}
;
id
:
string
|
number
|
null
;
jsonrpc
:
"2.0"
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
electron-agent-bridge
Loading...
Build a failure response.
idis null when the request could not be parsed.