Getting short error description from ThreadExceptionEventArgs

  • Thread starter Thread starter Gigi
  • Start date Start date
G

Gigi

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
 
You could use Try ... Catch to trap the error then use Mid to extract and
display a custom message from ex.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top