Sometimes, you may wish to raise your own exception.

To do this, use throw, followed by an instance of your exception.

You can learn more about this in:
Run Edit