1.4 library(json_rpc_server): JSON RPC Server
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog JSON library
        • Supporting JSON
          • library(json_rpc_server): JSON RPC Server
            • json_method/1
            • json_rpc_dispatch/2
            • json_rpc_dispatch_request/4
            • json_rpc_error/2
            • json_rpc_error/3
Availability::- use_module(library(json_rpc_server)).(can be autoloaded)
Sourcejson_rpc_error(+Code, +Message)
json_rpc_error(+Code, +Message, +Data)
Normally called from a method implementation to raise an application error.
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.