Forgot your password?
typodupeerror

Comment Re:It can do most of what they say... (Score 1) 906

True, that is one option, but then you are losing any specific exception information about the exception that was thrown. You could solve this by using inner exceptions, but it bring you to a casting problem. If I create a DataLayerException with an inner exception to house all the specific exceptions I may throw in my layer, I would have to type the inner exception as the base type 'Exception' so that all possible exception could be passed as inner exception. Then in my ui layer, I could extract the inner exception from the generic DataLayerException, but then I would have to cast the base Exception to the more specific exception. I think this is a much less elegant solution, though it is possible and it does get around the recompile that would be required.

Slashdot Top Deals

Term, holidays, term, holidays, till we leave school, and then work, work, work till we die. -- C.S. Lewis

Working...