technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


Catch Multiple Exceptions At Once In C#


How To Catch Multiple Exceptions At Once In Asp.Net

> Here we explain how to Catch Multiple Exceptions At Once.
> Try catch block is used for managing exceptions in Asp.Net.
> Normally catch (Exception ex) will handle any type of error.
> Means any Exception will first come in catch (Exception ex) region.

Catch Multiple Exceptions At Once In Asp Net, How To Catch Multiple Exceptions At Once In C#, Exceptions In Asp Net, Multiple Exceptions In C#, Catch Multiple Exceptions, Catch Exceptions, Asp.Net, C#, Try Catch Block, If statement

> Whether it is a Null Exception or any other type of error, it first comes at catch (Exception ex) .
> We can handle multiple Exceptions inside this catch (Exception ex) .
> Suppose we are expecting NullReferenceException and DivideByZeroException in a try Block.
> We can handle both exception as shown below.

Catch Multiple Exceptions At Once In Asp Net, How To Catch Multiple Exceptions At Once In C#, Exceptions In Asp Net, Multiple Exceptions In C#, Catch Multiple Exceptions, Catch Exceptions, Asp.Net, C#, Try Catch Block, If statement

> Here we check whether the type of error is NullReferenceException or DivideByZeroException.
> If yes, write the error message to LOG and Database.

if (ex is NullReferenceException || ex is DivideByZeroException)


> If it is any other type of error, apply throw function.
> So here we have seen how to Catch Multiple Exceptions At Once In Asp.Net.

Watch Video of this Content on Video Streaming

Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap