TheSwamp

Code Red => .NET => Topic started by: Jeff H on April 01, 2011, 08:46:01 PM

Title: Derived Exception Question
Post by: Jeff H on April 01, 2011, 08:46:01 PM
Can anyone think of a reason why this solution might need a class like this?

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlockTesting2011
{
    public class DocumentIsNullException : ApplicationException
    {
        private string _fileName;

        public string fileName
        {
            get { return _fileName; }
        }

        public DocumentIsNullException(string message, Exception inner, string filename) : base(message, inner)
        {
            _fileName = filename;
        }

        public DocumentIsNullException(string message, Exception inner) : base(message, inner)         
        {
           
        }
    }
}


Title: Re: Derived Exception Question
Post by: Kerry on April 01, 2011, 09:45:43 PM

Sorry Jeff, I inadvertently split the Topic  :oops:

Jeff of course meant this Solution
http://www.theswamp.org/index.php?topic=37686.msg427172#msg427172