471,624 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,624 software developers and data experts.

Getting short error description from ThreadExceptionEventArgs

Hello,
I'm trying to get from the ThreadExceptionEventArgs, but using the
t.stacktrace I get a long error description. I want to get only the error
class and error line.
Is there a Way?

Thank you
Nov 21 '05 #1
1 1161
You could use Try ... Catch to trap the error then use Mid to extract and
display a custom message from ex.

"Gigi" wrote:
Hello,
I'm trying to get from the ThreadExceptionEventArgs, but using the
t.stacktrace I get a long error description. I want to get only the error
class and error line.
Is there a Way?

Thank you

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Paco | last post: by
reply views Thread by Tim::.. | last post: by
8 posts views Thread by jcrouse | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.