Click here to Skip to main content
15,881,882 members
Articles / Web Development / ASP.NET

Custom Exception Framework: Using Enterprise Library Exception Handling Block

Rate me:
Please Sign up or sign in to vote.
3.95/5 (16 votes)
30 Oct 2008CPOL3 min read 69.3K   1.1K   42  
This article demonstrates a working model of a custom Exception block using Enterprise Library Exception Handling Block which is built around MVP architecture.
using System;
using System.Collections.Generic;
using System.Text;

namespace Project.Practice.MVP.Domain
{
    [Serializable()]
    public class Resource
    {
        private int m_ResourceID = int.MinValue;
        private string m_FirstName = string.Empty;
        private string m_LastName = string.Empty;
        private string m_Tokenizer = string.Empty;

        public Resource()
        { }

        public Resource(int resourceID,string firstName,string lastName,string tokenizer)
        {
            m_ResourceID = resourceID;
            m_FirstName = firstName;
            m_LastName = lastName;
            m_Tokenizer = tokenizer;
        }

        public string Tokenizer
        {
            get { return m_Tokenizer; }
            set { m_Tokenizer =value; }        
        }
        public string FirstName
        {
            get { return m_FirstName; }
            set { m_FirstName = value; }
        }

        public string LastName
        {
            get { return m_LastName; }
            set { m_LastName = value; }
        }
        public int ResourceID
        {
            get { return m_ResourceID; }
            set { m_ResourceID = value; }
        }
    }
}

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
Technical Lead
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

Comments and Discussions