Y
Hacker News
new
|
ask
|
show
|
jobs
by
Ajnasz
1095 days ago
I guess it's the same in most of languages. If you raise a general exception with a custom message you'll have to check the message not it's type.