[ create a new paste ] login | about

Link: http://codepad.org/0GBWEhUX    [ raw code | fork ]

Plain Text, pasted on Oct 19:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
        public class BaseException<T> : Exception where T : class
        {
            public BaseException() : base() { }

            public BaseException(string message) : base(message) { }

        }

        public class NameNullOrEmptyException 
        {
        }

so i am thinking something like that 

throw new BaseException<NameNullOrEmptyException > but the problem with that the thrown exception is BaseException<NameNullOrEmptyException> and I would like to have it NameNullOrEmptyException


Create a new paste based on this one


Comments: