Thank q for your quick response moritz,
The problem i am facing is that, i need to keep on monitoring the log file and when ever i get this error "Uncaught run time exception" then immediately it needs to send an email notification. could you suggest me the logic with which i can keep on monitoring the log file.