throwing any exception will fail your coded step. In your example it will look like this:
( my condition here)
line code 1
line code 2
line code 3
This will work with any class that extends Exception.
Let me know if you have any other questions!
the Telerik team