Opened 15 years ago
Closed 14 years ago
#1092 closed enhancement (wontfix)
Add toString method to dojo.io.Error object
Reported by: | guest | Owned by: | dylan |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | General | Version: | 0.3 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
Having a toString method of the error object makes a fair bit of sense for error handlers, logging, and "more error detail" dialogs.
Possible update -
src/io.js:
dojo.io.Error = function(msg, type, num){ this.message = msg; this.type = type || "unknown"; // must be one of "io", "parse", "unknown" this.number = num || 0; // per-substrate error number, not normalized this.toString = function() { return this.type + " " + this.number + ": " + this.message; } }
Change History (3)
comment:1 Changed 15 years ago by
Milestone: | → 0.5 |
---|---|
Owner: | changed from anonymous to dylan |
comment:2 Changed 15 years ago by
Status: | new → assigned |
---|
comment:3 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
don't think this exists anymore in 0.9
Note: See
TracTickets for help on using
tickets.
seems like a useful feature to have, adding to the milestone schedule