Jump to content
  • Advertisement
Sign in to follow this  
Lenox

Non user defined exceptions

This topic is 4825 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey there, Lenox here. I was wondering, is it possible to get more information on non- user defined exceptions? Like the file and line that it occured on? [Edited by - Lenox on June 3, 2005 7:37:58 PM]

Share this post


Link to post
Share on other sites
Advertisement
I don't know if this helps but in c++ there are two macros one for the current line called __LINE__ and another one that will give you the name of the source file __FILE__

Share this post


Link to post
Share on other sites
If you are using a debugger you can set it to break when an exception occures. In VC++ this is under debug->exceptions.

Share this post


Link to post
Share on other sites
Quote:
Original post by setaglib
I don't know if this helps but in c++ there are two macros one for the current line called __LINE__ and another one that will give you the name of the source file __FILE__


Well, yeah. That's how I get the file and line for handled exceptions.

I refer to 'handled' exceptions as user-defined exceptions, and 'unhandled' exceptions as exceptions thrown by the compiler.

twanvl:

Alright, I'll do that. Thanks

[EDIT]

I think my definitions are screwed up, lol.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!