Sign in to follow this  
Lenox

Non user defined exceptions

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
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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this