4 ms·
>Not if you're throwing a more specific exception. So the second and third methods are compatible with the first one, but not the other way around. These are p
by jayd16 7y ago
>Not if you're throwing a more specific exception. So the second and third methods are compatible with the first one, but not the other way around.
These are public classes and third party code will have overridden the original exception and not your subtype. This would break compatibility. You cannot change the types of these signatures in either direction.