- From: SVG Working Group repository <cam@mcc.id.au>
- Date: Mon, 20 Aug 2012 22:27:32 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/3b7f47328455 branches: changeset: 335:3b7f47328455 user: Cameron McCormack <cam@mcc.id.au> date: Tue Aug 21 15:07:18 2012 +1000 description: Remove SVGException and replace it with exceptions from DOM4. (ACTION-3264) diffstat: master/coords.html | 6 +- master/definitions.xml | 4 +- master/svgdom.html | 77 -------------------------------------------------- master/types.html | 22 ++++++------- 4 files changed, 16 insertions(+), 93 deletions(-) diffs (273 lines): diff --git a/master/coords.html b/master/coords.html --- a/master/coords.html +++ b/master/coords.html @@ -2018,20 +2018,20 @@ Returns the inverse matrix. <dd> <div> The inverse matrix. </div> </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_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> </dd> </dl> </dd> <dt id="__svg__SVGMatrix__translate" class="operation"><a class="idlinterface" href="coords.html#InterfaceSVGMatrix">SVGMatrix</a> <b>translate</b>(float <var>x</var>, float <var>y</var>) @@ -2199,17 +2199,17 @@ the positive or negative angle value is <dd> <div> The resulting matrix. </div> </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 class="exception first-child"><a>InvalidAccessError</a> </dt> <dd class="exception"> Raised if one of the parameters has an invalid value. </dd> </dl> </dd> </dl> diff --git a/master/definitions.xml b/master/definitions.xml --- a/master/definitions.xml +++ b/master/definitions.xml @@ -1037,17 +1037,16 @@ <interface name='SVGNumber' href='types.html#InterfaceSVGNumber'/> <interface name='SVGAngle' href='types.html#InterfaceSVGAngle'/> <interface name='SVGMatrix' href='coords.html#InterfaceSVGMatrix'/> <interface name='SVGRect' href='types.html#InterfaceSVGRect'/> <interface name='SVGAnimatedRect' href='types.html#InterfaceSVGAnimatedRect'/> <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'/> <interface name='SVGGradientElement' href='pservers.html#InterfaceSVGGradientElement'/> <interface name='SVGClipPathElement' href='masking.html#InterfaceSVGClipPathElement'/> <interface name='SVGMaskElement' href='masking.html#InterfaceSVGMaskElement'/> <interface name='SVGAnimatedLengthList' href='types.html#InterfaceSVGAnimatedLengthList'/> <interface name='SVGAnimatedAngle' href='types.html#InterfaceSVGAnimatedAngle'/> @@ -1338,13 +1337,16 @@ <interface name='EmbeddingElement' href='http://www.w3.org/TR/Window/#embeddingelt'/> <!-- ... terms .......................................................... --> <term name='compound selector' href='http://dev.w3.org/csswg/selectors4/#compound'/> <term name='compound selectors' href='http://dev.w3.org/csswg/selectors4/#compound'/> <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'/> </definitions> diff --git a/master/svgdom.html b/master/svgdom.html --- a/master/svgdom.html +++ b/master/svgdom.html @@ -194,93 +194,16 @@ each subsequent word starts with a capit a property that returns document meta information such as the date the file was created might be named "fileDateCreated". In the ECMAScript binding, properties are exposed as properties of a given object.</p> <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> <p>The feature strings that are available for the <strong>hasFeature</strong> method call that is part of the SVG DOM's support for the <a>DOMImplementation</a> interface defined in <a href="http://www.w3.org/TR/dom/">DOM4</a> diff --git a/master/types.html b/master/types.html --- a/master/types.html +++ b/master/types.html @@ -3860,17 +3860,17 @@ which specifies the new sRGB color value </div> </li> </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 class="exception first-child"><a>SyntaxError</a> </dt> <dd class="exception"> Raised if <var>rgbColor</var> does not match <a href="types.html#DataTypeColor"><color></a>. </dd> </dl> </dd> </dl> @@ -3903,17 +3903,17 @@ which specifies the alternate ICC color </div> </li> </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 class="exception first-child"><a>SyntaxError</a> </dt> <dd class="exception"> Raised if <var>rgbColor</var> does not match <a href="types.html#DataTypeColor"><color></a> or if <var>iccColor</var> does not match <a href="types.html#DataTypeICCColor"><icccolor></a>. </dd> </dl> @@ -3956,25 +3956,23 @@ otherwise, <var>iccColor</var> must be n <div>DOMString <var>iccColor</var></div> <div> The specification of an ICC color, or null. </div> </li> </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> </dl> </dd> </dl> @@ -4421,17 +4419,17 @@ to the user coordinate system on paramet <dd> <div> An <a>SVGMatrix</a> object that defines the transformation. </div> </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_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 given matrix (e.g., because one of the transformations is singular). </dd> </dl> </dd>
Received on Tuesday, 21 August 2012 05:28:37 UTC