Exceptions | SoloLearn: Learn to code for FREE!

+4

Exceptions

Are specific exceptions called before general exceptions in Python and C# ?

4/13/2019 2:20:40 AM

Sanjay Kamath

3 Answers

New Answer

+2

Yes That is true. The most general exception is Exception. But if a more specific exception applies, then this block will handle the exception. Only one catch block handles the exception https://www.tutorialsteacher.com/csharp/csharp-exception-handling

+2

in C# General exception not called ,if in code use specific exception. After specific exception will call 'finally' part , if it exist.

+1

Hi all!)