Opened 14 years ago
Closed 13 years ago
#2237 closed enhancement (fixed)
RpcService.js can't receive error objects
Reported by: | Owned by: | dylan | |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | RPC | Version: | 0.4.1 |
Keywords: | json rpc | Cc: | |
Blocked By: | Blocking: |
Description
according to json-rpc.org specifications error must be an object, but dojo just allows strings. it will be great if this can be solved in next verions, the patch is very simple. I've made it myself to run my applications right.
Change History (3)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Milestone: | → 0.9 |
---|---|
Owner: | changed from Dustin Machi to dylan |
Status: | new → assigned |
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
this is the code from RpcService?.js:
if (objerror?!=null) {
}
so you still have the string text error with obj.error.message to send in new Error and can accept the object error with message, code, and custom error object with extra data. This standarization comes from json-rpc.org specifications draft 1.1 and I think its ok.