Author Topic: Derived Exception Question  (Read 1786 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6144
Derived Exception Question
« 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)         
        {
           
        }
    }
}



Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Derived Exception Question
« Reply #1 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
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.