G
Guest
Unfortunately I've used exception handling as a debugging tool.
Now I want to be smarter about handling errors. Today in the global.asx in the Application_OnError event, I inserted code to email me the Server.GetLastError with some other information.
Everythings working fine, but the information about the last error isn't useful. I stilll have to step through the program (VS.NET 2003) to find exactly where the error(s) originate.
Tell me if this is right.
1. The Code Behind uses and Object (dll).
2. Object uses another Data Access Object to retrieve data.
Here I know SQLException is being raised because I purposely changed the connect string.
I have no try catch blocks.
So......
If I throw Exceptions from the Data Access Object and the Code behind......will I receive more info about the error.
I'll give more detailed info...if needed, but someone with experience should know what I'm talking about.
While I'm testing myself.....I like hearing peoples opinions.
Thanks,
Lee
Now I want to be smarter about handling errors. Today in the global.asx in the Application_OnError event, I inserted code to email me the Server.GetLastError with some other information.
Everythings working fine, but the information about the last error isn't useful. I stilll have to step through the program (VS.NET 2003) to find exactly where the error(s) originate.
Tell me if this is right.
1. The Code Behind uses and Object (dll).
2. Object uses another Data Access Object to retrieve data.
Here I know SQLException is being raised because I purposely changed the connect string.
I have no try catch blocks.
So......
If I throw Exceptions from the Data Access Object and the Code behind......will I receive more info about the error.
I'll give more detailed info...if needed, but someone with experience should know what I'm talking about.
While I'm testing myself.....I like hearing peoples opinions.
Thanks,
Lee