Jeff,
That's about the only solution you have, really. Why is it not a good
solution?
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"Jeff" <(E-Mail Removed)> wrote in message
news:OCj%(E-Mail Removed)...
> hey
>
> .NET 2.0
>
> I'm wondering if tit's possible to add some info to an exception. lets say
> I want to add "helloworld" to an exception so where it's caught can check
> for this "helloword" text...
>
> The reason I ask is that I'm programming a n-tier application and want
> database errors to be caught in the data layer. but giving the user a
> another errror. The user errortext is determined in the presentationlevel.
> So when for exampel an error occur in the data layer the text "invalid
> column" is written to the eventlog and the user get to show another
> error.
>
> I know I can in the catch block throw another exception but that is not a
> good solution....
>
> any suggestions
>
>