Exception handling

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • a.mustaq@gmail.com

    Exception handling

    Hi Guys,

    I am developing a asp.net application.In this I have
    to handle exceptions in application level. When ever an an exception
    occurs in any part of the application it should be hanldeld at a
    single point. If some type of exception occurs the execution flow
    should continue and if other type of excetion occurs it should
    redirect to an error page.

    I have tried this by hadling exceptions in
    Applicatio_Erro r event of Global.asax.Whe never an exception occurs it
    is redirecting to error page but i am unable to continue the flow of
    execution when some type of exceptions are occured.

    Plz.help me in acheving this.

    with Regards,
    Mustaq Ahmed.A
  • George Ter-Saakov

    #2
    Re: Exception handling

    You got to use

    try
    {
    .......
    }
    catch( MyTypeOfExcepti on)
    {
    ......
    }
    in your code if you want to continue execution flow if MyTypeOfExcepti on
    type had happened

    The rest is correct approach. Handle it in Application_Err or and Log it or
    send yourself an email with Exception details.


    George.

    <a.mustaq@gmail .comwrote in message
    news:856fc1d9-4c11-4147-8e63-84ba1aacc4bb@d6 2g2000hsf.googl egroups.com...
    Hi Guys,
    >
    I am developing a asp.net application.In this I have
    to handle exceptions in application level. When ever an an exception
    occurs in any part of the application it should be hanldeld at a
    single point. If some type of exception occurs the execution flow
    should continue and if other type of excetion occurs it should
    redirect to an error page.
    >
    I have tried this by hadling exceptions in
    Applicatio_Erro r event of Global.asax.Whe never an exception occurs it
    is redirecting to error page but i am unable to continue the flow of
    execution when some type of exceptions are occured.
    >
    Plz.help me in acheving this.
    >
    with Regards,
    Mustaq Ahmed.A

    Comment

    Working...