Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 463
IEnjoyEatingVegetables Avatar asked Jul 03 '13 19:07

IEnjoyEatingVegetables


People also ask

What is C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is C language in simple words?

What Does C Programming Language (C) Mean? C is a high-level and general-purpose programming language that is ideal for developing firmware or portable applications. Originally intended for writing system software, C was developed at Bell Labs by Dennis Ritchie for the Unix Operating System in the early 1970s.

What is the C in history?

Often dates will be preceded with a "c." or a "ca." These are abbreviations of the Latin word "circa" which means around, or approximately. We use this before a date to indicate that we do not know exactly when something happened, so c. 400 B.C.E. means approximately 400 years Before the Common Era.

What is C for computer?

C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on. C programming is an excellent language to learn to program for beginners.


1 Answers

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

like image 180
Reed Copsey Avatar answered Sep 19 '22 19:09

Reed Copsey