In Java, you explicitly define what exceptions are thrown using the \"throws\" keyword. That way, anyone calling your method knows what to catch.
Is there something
As far as I'm aware there is no throws declaration in C# you can document your method indicating that it throws an exception but no forced error handling.