|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Catch ErrorWhen I have an exception I use
try { } catch(Exception e) { print e.Message (for example) } Now, I want to catch the error message and the line number of the error. How can I do that, I have to put numbers to lines???. Thanks for Your help. Hi,
You can't trace number of the problematic line since source is compiled. But Visual Studio should highlight such line if there'll raise any exception while debugging. Show quoteHide quote "Matías" <preguntam***@hotmail.com> pí¹e v diskusním pøíspìvku news:eQHfx8UOGHA.3272@tk2msftngp13.phx.gbl... > When I have an exception I use > try { > } catch(Exception e) { > print e.Message (for example) > } > > Now, I want to catch the error message and the line number of the error. > How can I do that, I have to put numbers to lines???. Thanks for Your > help. > > > > wrote:
> When I have an exception I use That's the job of a debugger. This would be useless in the released > try { > } catch(Exception e) { > print e.Message (for example) > } > > Now, I want to catch the error message and the line number of the error. How > can I do that, I have to put numbers to lines???. Thanks for Your help. product. Hope that helps,
System.UnauthorizedAccessException: Access to the path ...Temporary ASP.NET Files.. is denied.
Send mail using System.Web.Mail fails w/ m.BodyFormat=MailFormat.H Error: The process cannot access the file it si being used by anot How to protect downloadable files? Bulk data in grid view [ASP.Net] Accessing Login Control's Button from Code-Behind More of a CSS query asp.net 2.0 repeater own class MasterType conflicts with Theme Form authentication security question! |
|||||||||||||||||||||||