Skip to content

Conversation

hannaeko
Copy link

@hannaeko hannaeko commented Aug 11, 2021

Allow setting custom error code (#7).

Throwing an error like this one:

die { code => -32000, data => { some => "data" }, message => "Internal error 012" };

results on the following json message:

{
  "id": 1,
  "error": {
    "data": {
      "some": "data"
    },
    "code": -32000,
    "message": "Internal error 012"
  },
  "jsonrpc": "2.0"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant