Click here to Skip to main content
15,885,365 members
Articles / Programming Languages / C#

To Err is Human… to Handle, Divine

Rate me:
Please Sign up or sign in to vote.
3.54/5 (5 votes)
9 Apr 2007CPOL10 min read 36.5K   73   32  
How do you handle exceptions? Do you reuse your solution?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            global::Jason.EnterpriseErrorHandler.ErrorManager.InstallApplicationErrorHandler();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            throw new Exception("User Exception");
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
Berkeley Grad (B.A. Computer Science) With MBA

Comments and Discussions