<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10622</bug_id>
          
          <creation_ts>2010-09-13 07:46:16 +0000</creation_ts>
          <short_desc>ECMAScript binding for exceptions</short_desc>
          <delta_ts>2011-04-12 02:59:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38955</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-09-13 07:46:16 +0000</bug_when>
    <thetext>They should inherit from Error. Furthermore, there should be a way for me to declare what the Error name exception field would return, ideally via a shorthand.

For DOMException the name exception field has to return the constant the code exception field returns, as a string. So e.g. for a NAMESPACE_ERR the name exception field would return &quot;NAMESPACE_ERR&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41802</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2010-10-28 05:06:23 +0000</bug_when>
    <thetext>Shouldn&apos;t the name field be DOMException, and the message have something mentioning NAMESPACE_ERR?  That would be more consistent with native errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41805</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-10-28 09:19:54 +0000</bug_when>
    <thetext>Oh, if that is more consistent, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47363</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-04-12 02:59:41 +0000</bug_when>
    <thetext>Exceptions now do inherit from Error, and the value of the name property is defined to be the same as the identifier of the exception.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>