Remix.run Logo
TZubiri 9 hours ago

Yes. Note how I didn't say impossible to recover, just impossible to continue.

The execution couldn't continue in one path due to an error it needed to be caught in another path.

The difference with standard conditional mechanisms like if loops is mostly semantical. Exceptions are unforeseen errors, (technically they are sets of errors, which can have size 1, but the syntax is designed for catching groups of errors, if you want to react to a single error case you could also just use a condition with a return value and it ceases being an exception. )