Remove SVGException and replace it with exceptions from DOM4. (ACTION-3264)
authorCameron McCormack <cam@mcc.id.au>
Tue, 21 Aug 2012 15:07:18 +1000
changeset 335 3b7f47328455
parent 334 9dad8de97cf0
child 336 08ec4a483a84
Remove SVGException and replace it with exceptions from DOM4. (ACTION-3264)
master/coords.html
master/definitions.xml
master/svgdom.html
master/types.html
--- a/master/coords.html	Tue Aug 21 15:08:24 2012 +1000
+++ b/master/coords.html	Tue Aug 21 15:07:18 2012 +1000
@@ -2023,10 +2023,10 @@
 <dt class="exceptions-header">Exceptions</dt>
 <dd>
 <dl class="exceptions">
-<dt class="exception first-child"><a class="idlinterface" href="svgdom.html#ExceptionSVGException">SVGException</a>, code SVG_MATRIX_NOT_INVERTABLE
+<dt class="exception first-child"><a>InvalidStateError</a>
 </dt>
 <dd class="exception"> Raised if this matrix is
-not invertable.
+not invertible.
 
 </dd>
 </dl>
@@ -2204,7 +2204,7 @@
 <dt class="exceptions-header">Exceptions</dt>
 <dd>
 <dl class="exceptions">
-<dt class="exception first-child"><a class="idlinterface" href="svgdom.html#ExceptionSVGException">SVGException</a>, code SVG_INVALID_VALUE_ERR
+<dt class="exception first-child"><a>InvalidAccessError</a>
 </dt>
 <dd class="exception"> Raised if one of the
 parameters has an invalid value.
--- a/master/definitions.xml	Tue Aug 21 15:08:24 2012 +1000
+++ b/master/definitions.xml	Tue Aug 21 15:07:18 2012 +1000
@@ -1042,7 +1042,6 @@
   <interface name='SVGLength' href='types.html#InterfaceSVGLength'/>
   <interface name='SVGTransform' href='coords.html#InterfaceSVGTransform'/>
   <interface name='SVGStringList' href='types.html#InterfaceSVGStringList'/>
-  <interface name='SVGException' href='svgdom.html#ExceptionSVGException'/>
   <interface name='SVGPaint' href='painting.html#InterfaceSVGPaint'/>
   <interface name='SVGTransformList' href='coords.html#InterfaceSVGTransformList'/>
   <interface name='SVGAnimatedTransformList' href='coords.html#InterfaceSVGAnimatedTransformList'/>
@@ -1343,6 +1342,9 @@
   <term name='filter primitive element' href='https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#TermFilterPrimitiveElement'/>
   <term name='filter primitive elements' href='https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#TermFilterPrimitiveElement'/>
   <term name='tree order' href='http://www.w3.org/TR/2012/WD-dom-20120405/#concept-tree-order'/>
+  <term name='InvalidAccessError' href='http://www.w3.org/TR/2012/WD-dom-20120405/#invalidaccesserror'/>
+  <term name='InvalidStateError' href='http://www.w3.org/TR/2012/WD-dom-20120405/#invalidstateerror'/>
+  <term name='SyntaxError' href='http://www.w3.org/TR/2012/WD-dom-20120405/#syntaxerror'/>
 
   <!-- ... grammar symbols ................................................ -->
   <symbol name='identifier' href='http://www.w3.org/TR/2012/WD-css3-values-20120308/#identifier'/>
--- a/master/svgdom.html	Tue Aug 21 15:08:24 2012 +1000
+++ b/master/svgdom.html	Tue Aug 21 15:07:18 2012 +1000
@@ -199,83 +199,6 @@
 <p>For attributes with the CDATA data type, the case of the
 return value is that given in the source document.</p>
 
-<h2 id="ExceptionSVGException">Exception SVGException</h2>
-
-This exception is raised when a specific SVG operation is impossible to
-perform.
-<pre class="idl">exception <b>SVGException</b> {
-  unsigned short <a href="svgdom.html#__svg__SVGException__code">code</a>;
-};
-
-// SVGException code
-const unsigned short <a href="svgdom.html#__svg__SVG_WRONG_TYPE_ERR">SVG_WRONG_TYPE_ERR</a> = 0;
-const unsigned short <a href="svgdom.html#__svg__SVG_INVALID_VALUE_ERR">SVG_INVALID_VALUE_ERR</a> = 1;
-const unsigned short <a href="svgdom.html#__svg__SVG_MATRIX_NOT_INVERTABLE">SVG_MATRIX_NOT_INVERTABLE</a> = 2;</pre><dl class="interface">
-<dt class="constants-header">Constants in group “SVGException code”:</dt>
-<dd>
-<dl class="constants">
-
-<dt id="__svg__SVG_WRONG_TYPE_ERR" class="constant first-child"><b>SVG_WRONG_TYPE_ERR</b><span class="idl-type-parenthetical"> (unsigned short)</span></dt>
-<dd class="constant">
-<div>
-
-<p>Raised when an object of the wrong type is passed to an operation.</p>
-
-
-<p>Note that no operation is defined to raise an <a>SVGException</a> with
-this code in SVG 1.1 Second Edition.  The constant remains defined here
-for consistency with SVG 1.1 First Edition.
-</p>
-
-
-</div>
-</dd>
-
-<dt id="__svg__SVG_INVALID_VALUE_ERR" class="constant"><b>SVG_INVALID_VALUE_ERR</b><span class="idl-type-parenthetical"> (unsigned short)</span></dt>
-<dd class="constant">
-<div>
-Raised when an invalid value is passed to an operation or assigned to an
-attribute.
-
-
-</div>
-</dd>
-
-<dt id="__svg__SVG_MATRIX_NOT_INVERTABLE" class="constant"><b>SVG_MATRIX_NOT_INVERTABLE</b><span class="idl-type-parenthetical"> (unsigned short)</span></dt>
-<dd class="constant">
-<div>
-
-<p>Raised when an attempt is made to invert a matrix that is not
-invertible.
-</p>
-
-
-<p>Note the unusual spelling of this constant, which is necessary for
-compatibility with existing content.
-</p>
-
-
-</div>
-</dd>
-</dl>
-</dd>
-<dt class="exception-members-header">Exception members:</dt>
-<dd>
-<dl class="attributes">
-
-<dt id="__svg__SVGException__code" class="exception-member"><b>code</b><span class="idl-type-parenthetical"> (unsigned short)</span></dt>
-<dd class="exception-member">
-<div>
-A code identifying the reason why the requested operation could not be
-performed.  The value of this member will be one of the constants
-in the <em>SVGException code</em> group.
-
-</div>
-</dd>
-</dl>
-</dd>
-</dl>
-
 
 <h2 id="FeatureStrings">Feature strings for the <strong>hasFeature</strong> method call</h2>
 
--- a/master/types.html	Tue Aug 21 15:08:24 2012 +1000
+++ b/master/types.html	Tue Aug 21 15:07:18 2012 +1000
@@ -3865,7 +3865,7 @@
 <dt class="exceptions-header">Exceptions</dt>
 <dd>
 <dl class="exceptions">
-<dt class="exception first-child"><a class="idlinterface" href="svgdom.html#ExceptionSVGException">SVGException</a>, code SVG_INVALID_VALUE_ERR
+<dt class="exception first-child"><a>SyntaxError</a>
 </dt>
 <dd class="exception"> Raised if <var>rgbColor</var>
 does not match <a href="types.html#DataTypeColor">&lt;color&gt;</a>.
@@ -3908,7 +3908,7 @@
 <dt class="exceptions-header">Exceptions</dt>
 <dd>
 <dl class="exceptions">
-<dt class="exception first-child"><a class="idlinterface" href="svgdom.html#ExceptionSVGException">SVGException</a>, code SVG_INVALID_VALUE_ERR
+<dt class="exception first-child"><a>SyntaxError</a>
 </dt>
 <dd class="exception"> Raised if <var>rgbColor</var>
 does not match <a href="types.html#DataTypeColor">&lt;color&gt;</a>
@@ -3961,15 +3961,13 @@
 </ol>
 </dd>
 <dt class="exceptions-header">Exceptions</dt>
-<dd>
-<dl class="exceptions">
-<dt class="exception first-child"><a class="idlinterface" href="svgdom.html#ExceptionSVGException">SVGException</a>, code SVG_INVALID_VALUE_ERR
-</dt>
-<dd class="exception"> Raised if one of the
-parameters has an invalid value.
-
-</dd>
-</dl>
+  <dd>
+  <dl class="exceptions">
+    <dt class="exception first-child"><a>InvalidAccessError</a></dt>
+    <dd class="exception">Raised if the colorType parameter has an invalid value.</dd>
+    <dt class="exception"><a>SyntaxError</a></dt>
+    <dd class="exception">Raised if the rgbColor or iccColor parameter has an invalid value.</dd>
+  </dl>
 </dd>
 </dl>
 </dd>
@@ -4426,7 +4424,7 @@
 <dt class="exceptions-header">Exceptions</dt>
 <dd>
 <dl class="exceptions">
-<dt class="exception first-child"><a class="idlinterface" href="svgdom.html#ExceptionSVGException">SVGException</a>, code SVG_MATRIX_NOT_INVERTABLE
+<dt class="exception first-child"><a>InvalidStateError</a>
 </dt>
 <dd class="exception"> Raised if the currently
 defined transformation matrices make it impossible to compute the