1
0
Fork 0

Add index page section on Error subtyping

* index.html (Error Subtyping): Added
website
Mike Gerwitz 2016-07-15 12:52:38 -04:00
parent 9c86b0bddf
commit f94d1dca66
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 18 additions and 0 deletions

View File

@ -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">&uarr;</a> <a href="#" class="top">&uarr;</a>
<h3 id="error" class="bigemph">
Transparent Error Subtyping
<span class="anchor"><a href="#error">&para;</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">&rarr; Read more in manual</a>
<a href="#" class="top">&uarr;</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 */