taskease.js - Tasks: task #12109, Error subtypes

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #12109: Error subtypes

Submitter:  Mike Gerwitz <mikegerwitz>
Submitted:  Sun 10 Jun 2012 04:02:50 AM UTC
   
 
Should Start On:  Sun 10 Jun 2012 04:00:00 AM UTC Should be Finished on:  Mon 01 Jul 2013 04:00:00 AM UTC
Category:  Core Priority:  4
Item Group:  Development Status:  None
Privacy:  Public Assigned to:  mikegerwitz
Percent Complete:  0% Open/Closed:  Open
Planned Release:  None
Keywords:  errors

Sun 10 Jun 2012 04:02:50 AM UTC, original submission:  

Create error subtypes for specific errors. For example, should an error occur during class creation, perhaps a ClassDeclarationError will be thrown.

It would be useful to create an ease.js Error class that supports simple, cross-browser extending of the Error class for stack traces, etc. This class could be exposed via easejs.Error, or something of the sort. It may be helpful to decide where standard classes will go in the future (e.g. easejs.lib.Error) and put it there.


Class( 'ClassDeclarationError' ).extend( easejs.Error,
{
    // ...
} );


Mike Gerwitz <mikegerwitz>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mikegerwitz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code