DEV Community

Discussion on: ELI5: Why cast to an interface?

 
lluismf profile image
Lluís Josep Martínez

This would be a programming error and you shouldn't use the Exception mechanism to catch errors.