Thanks to all who contributed!
<Nick>
for me, who has never written a line of Java, I'd like it if you could
explain this concept. One of us may be able to translate it into .NET for
you.
</Nick>
Nick, I think from the responses to my post it has become clear, what I'm
speaking of. Nevertheless, sorry for assuming that everyone knows about
checked exceptions.
<Jon>
There's no equivalent in .NET - I ping-pong back and forth as to
whether or not it's a good idea. It (.NET) feels like driving without a
seatbelt - it feels more free, but more dangerous too.
</Jon>
Yes, that's exactly how I see it too. I still have very little experience in
programming Java (started a few weeks ago, in my spare time, like C# too),
but immediately found, that checked exceptions are what I always missed in
C++ (I come from the C, MSVC++, Python corner). Yes, MSVC++ has exception
specs, but they aren't checked. And I always found that a pity.
<Bruno>
Otherwise, in C#, you could fake them by introducing a special "Throws"
attribute that lists the exceptions that a method may throw. The hard part
will be to write a tool that analyses the bodies of methods and tells you if
you violate the checked exception constraints.
</Bruno>
Yes, a fake like that would be the seed to build a tool around. My hope was,
that somebody already has bitten the bullet...
<Jeffrey>
Yes, C# does not implement the "Checked Exception", there is a conversation
between C# designer Anders and Bruce Eckel, talked about this:
http://www.artima.com/intv/handcuffs.html
</Jeffrey>
I've read it. In that article Anders says, that tools will take over in this
matter. Seems reasonable to me. For now it doesn't matter to me if such a
tool is the compiler itself or, well, a tool. However, I like to have the
choice: Seatbelts yes or no

. But as I said: My experiences wrt checked
exceptions are little yet.
Many thanks again and best regards
Franz GEIGER