What is the C# equivalent to Java's Throwable
?
In Java, the root of the exception class hierarchy is called Throwable
, not Exception
. The Throwable
base class has two derived classes:
Exception
: for conditions that a reasonable application might want to catch.
Error
: for serious problems that a reasonable program should not try to catch.
So the Throwable
base class includes problems that a reasonable program should not try to catch.
That would be the Exception class. There is no separate "throwable" concept aside from exceptions in .NET.