Add index page section on Error subtyping
* index.html (Error Subtyping): Addedwebsite
parent
9c86b0bddf
commit
f94d1dca66
18
index.html
18
index.html
|
@ -28,6 +28,7 @@
|
||||||
<li><a href="#abstract">Abstract classes and methods</a></li>
|
<li><a href="#abstract">Abstract classes and methods</a></li>
|
||||||
<li><a href="#interfaces">Interfaces</a></li>
|
<li><a href="#interfaces">Interfaces</a></li>
|
||||||
<li><a href="#static">Static and constant members</a></li>
|
<li><a href="#static">Static and constant members</a></li>
|
||||||
|
<li><a href="#error">Transparent Error Subtyping</a></li>
|
||||||
<li>Support for ECMAScript 3+</li>
|
<li>Support for ECMAScript 3+</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -253,6 +254,23 @@
|
||||||
<a href="#" class="top">↑</a>
|
<a href="#" class="top">↑</a>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="error" class="bigemph">
|
||||||
|
Transparent Error Subtyping
|
||||||
|
<span class="anchor"><a href="#error">¶</a></span>
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
Error subtyping (creating your own error types) in ECMAScript is
|
||||||
|
notoriously crude, and getting it to work intuitively is even
|
||||||
|
harder. ease.js transparently handles all necessarily boilerplate when
|
||||||
|
extending <tt>Error</tt> or its subtypes.
|
||||||
|
</p>
|
||||||
|
<pre class="js">
|
||||||
|
<!--%inc scripts/ex/error-subtype.js -->
|
||||||
|
</pre>
|
||||||
|
<a href="manual/Error-Subtypes.html">→ Read more in manual</a>
|
||||||
|
<a href="#" class="top">↑</a>
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="scripts/highlight.pack.js"></script>
|
<script type="text/javascript" src="scripts/highlight.pack.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later */
|
/* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later */
|
||||||
|
|
Loading…
Reference in New Issue