Opened 16 years ago

Closed 15 years ago

#1092 closed enhancement (wontfix)

Add toString method to object

Reported by: guest Owned by: dylan
Priority: high Milestone: 0.9
Component: General Version: 0.3
Keywords: Cc: [email protected]
Blocked By: Blocking:


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: = 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 16 years ago by dylan

Milestone: 0.5
Owner: changed from anonymous to dylan

seems like a useful feature to have, adding to the milestone schedule

comment:2 Changed 16 years ago by dylan

Status: newassigned

comment:3 Changed 15 years ago by Adam Peller

Resolution: wontfix
Status: assignedclosed

don't think this exists anymore in 0.9

Note: See TracTickets for help on using tickets.