C Chris Botha Jan 30, 2009 #1 Using VB, how can I get the module name/class name, and source file line number when an exception is thrown? Thanks.
Using VB, how can I get the module name/class name, and source file line number when an exception is thrown? Thanks.
S sloan Jan 30, 2009 #3 What was the answer? So that when people find this thread post years from now by googling themselves....they'll see the answer with it.
What was the answer? So that when people find this thread post years from now by googling themselves....they'll see the answer with it.
Z z.sessions Jan 30, 2009 #4 What was the answer? So that when people find this thread post years from now by googling themselves....they'll see the answer with it. Click to expand... I would create a custom exception with properties that contain those values, or display the values in the exception message or inner exception.
What was the answer? So that when people find this thread post years from now by googling themselves....they'll see the answer with it. Click to expand... I would create a custom exception with properties that contain those values, or display the values in the exception message or inner exception.
F Family Tree Mike Jan 30, 2009 #5 What was the answer? So that when people find this thread post years from now by googling themselves....they'll see the answer with it. Click to expand... I would create a custom exception with properties that contain those values, or display the values in the exception message or inner exception.
What was the answer? So that when people find this thread post years from now by googling themselves....they'll see the answer with it. Click to expand... I would create a custom exception with properties that contain those values, or display the values in the exception message or inner exception.
G Guest Jan 30, 2009 #6 Get module name and line number with exception? see: [StackFrame Members (System.Diagnostics)] http://msdn.microsoft.com/en-us/library/system.diagnostics.stackframe_members.aspx -> GetMethod, GetFileName, GetFileLineNumber, GetFileColumnNumber be aware, that the information is typically extracted from the *debugging* symbols. ciao Frank
Get module name and line number with exception? see: [StackFrame Members (System.Diagnostics)] http://msdn.microsoft.com/en-us/library/system.diagnostics.stackframe_members.aspx -> GetMethod, GetFileName, GetFileLineNumber, GetFileColumnNumber be aware, that the information is typically extracted from the *debugging* symbols. ciao Frank