/usr/lib/swipl/library/ext/json/json_rpc_server.pl
All Application Manual Name SummaryHelp

  • ext
    • json
      • json.pl
      • json_grammar.pl -- JavaScript grammar
      • json_convert.pl
      • json_rpc_server.pl -- JSON RPC Server
        • json_method/1
        • json_rpc_dispatch/2
        • json_rpc_dispatch_request/4
        • json_rpc_error/2
        • json_rpc_error/3
      • json_rpc_client.pl -- JSON RPC client
      • json_schema.pl -- JSON Schema reader and validator
 json_rpc_error(+Code, +Message)
 json_rpc_error(+Code, +Message, +Data)
Normally called from a method implementation to raise an application error.
Arguments:
Code- is an integer. The range -32768 to -32000 is reserved for JSON RPC server errors.
Message- is a short string decribing the error
Data- is optional JSON data that provides context for the error.
Errors
- json_rpc_error(Dict), where Dict contains the JSON RPC defined fields code, message and optionally data.