Skip to content

custom define for application defined errors.Β #40

Open
@sevenjay

Description

@sevenjay

the spec. mentions that "-32000 to -32099 Server error Reserved for implementation-defined server-errors."

The remainder of the space is available for application defined errors.
Could we have custom define errors for application in the future?
Like:

    return JSONRPCError(-32000, "Empty Request").as_response()

or just let user define class JSONRPCEmptyRequest(JSONRPCError)
Thanks

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions