The problem with exceptions is that they can lead to inconsistent states. So yeah, you can use it to control flow if you are VERY careful. But I think that almost always there is a better approach.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The problem with exceptions is that they can lead to inconsistent states. So yeah, you can use it to control flow if you are VERY careful. But I think that almost always there is a better approach.