# \#exception

**URL:** https://forums.sketchup.com/tag/exception/839.md

[Latest](https://forums.sketchup.com/latest.md) · [Categories](https://forums.sketchup.com/categories.md) · [Tags](https://forums.sketchup.com/tags.md)

---

## [\[code\] Example of creating your own Exception subclasses](https://forums.sketchup.com/t/code-example-of-creating-your-own-exception-subclasses/36906)

<div class="topic-metadata">

**Author:** [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Replies:** 1\
**Last updated:** [January 7, 2017, 5:14pm UTC](https://forums.sketchup.com/t/code-example-of-creating-your-own-exception-subclasses/36906 "2017-01-07T17:14:12Z")

</div>

Prompted by a question (over at SCF,) about using a SystemExit exception (fired by exit(),) to bail out of an input handling routine. The main answer is: I know of no good use for exit() in an embedded Ruby subprocess. …
