Check out example codes for "exception handling c#". It will help you in understanding the concepts better.

Code Example 1

try {
   // statements causing exception
} catch( ExceptionName e1 ) {
   // error handling code
} catch( ExceptionName e2 ) {
   // error handling code
} catch( ExceptionName eN ) {
   // error handling code
} finally {
   // statements to be executed
}

Learn ReactJs, React Native from akashmittal.com