• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

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.
ClioPatria (version V3.1.1-59-g7b9a7a3)