taskease.js - Tasks: task #12087, Provide error messages when...

 
 

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

task #12087: Provide error messages when attempting to extend or implement nonsensical values

Submitted by:  Mike Gerwitz <mikegerwitz>
Submitted on:  Sat 09 Jun 2012 10:49:26 PM UTC  
 
Should Start On: Wed 01 Aug 2012 04:00:00 AM UTCShould be Finished on: Sat 01 Sep 2012 04:00:00 AM UTC
Category: CorePriority: 5 - Normal
Item Group: DevelopmentStatus: None
Privacy: PublicAssigned to: Mike Gerwitz <mikegerwitz>
Percent Complete: 0%Open/Closed: Open
Planned Release: 0.1.1
Keywords: implement, classes, interfaces, extend

Sat 09 Jun 2012 10:49:26 PM UTC, original submission:

When extending from an undefined value, no supertype is inherited. However, it is more likely that the user mistyped a variable/property. Such an incident would be a fairly serious bug in the software, so we should throw an error to notify the developer that they likely did something wrong.

When implementing interfaces, a cryptic error is thrown. Throw a useful error.

For example:

Class.extend( undefined, {} );
Class.implement( undefined );

Mike Gerwitz <mikegerwitz>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 09 Jun 2012 10:50:29 PM UTCmikegerwitzPlanned ReleaseNone=>0.1.1

    Back to the top


    Powered by Savane 3.1-cleanup