You should raise a custom exceptions:
```ruby
# put this at the end of your class, before the last end
class StackOverflow < StandardError;end
```
then use it
```ruby
raise StackOverflow
```