Ambientware.Utils.CatchError
| Submitted On |
February 11, 2003 |
| Updated on |
July 25, 2007 |
| .NET Framework |
1.x |
| Cost |
$ 0 |
Description
This is a must have for any .NET web application. With Ambientware CatchError, the webmaster is emailed the line number, description and date/time for every site error. This component allows the developer to cleanly catch all programming errors while displaying a friendly message to their users. This utility is packaged with a universal data access utility, PDF document generator, Zip utility and a download to browser utility.
Syntax Example
Imports Ambientware.Utils.Util
Sub SomeSub()
On Error Goto ErrRoutine
--your code goes here
Exit Sub
ErrRoutine:
Dim objErrorCatcher As New CatchError()
objErrorCatcher.SubCatchError(Err.GetException.StackTrace)
objErrorCatcher = Nothing
‘It is a good idea to redirect the user to a page that tells them that you were notified about the error
‘this page really needs to only just display a message to the user and nothing else
Server.Transfer(“YourErrorPage.aspx”)
End Sub
Reviews
Submit a review