Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Custom Exception Framework: Using Enterprise Library Exception Handling Block

, 30 Oct 2008 CPOL
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)

Share

About the Author

santosh poojari
Technical Lead
India India
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150302.1 | Last Updated 30 Oct 2008
Article Copyright 2008 by santosh poojari
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid