What is exception handling in c#? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is exception handling in c#?

help me guyz

9th Nov 2016, 8:25 PM
Ghulam Mustafa
Ghulam Mustafa - avatar
2 Answers
0
try { // Code to try goes here. } catch (SomeSpecificException ex) { // Code to handle the exception goes here. // Only catch exceptions that you know how to handle. // Never catch base class System.Exception without // rethrowing it at the end of the catch block. } It is covered very clearly in the SoloLearn C# course.
9th Nov 2016, 9:08 PM
Mikal S
Mikal S - avatar
0
thnk u
9th Nov 2016, 9:10 PM
Ghulam Mustafa
Ghulam Mustafa - avatar