What is the C# equivalent to Java's Throwable?

IEnjoyEatingVegetables picture IEnjoyEatingVegetables · Jul 3, 2013 · Viewed 11.4k times · Source

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.

Answer

Reed Copsey picture Reed Copsey · Jul 3, 2013

That would be the Exception class. There is no separate "throwable" concept aside from exceptions in .NET.