• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

handling unhandled exceptions within a class

Hi  i have a fairly standard web class witch uses the __constructor function and has loads of functions within it

my question is is how do i globally across the whole class catch any unhandled exceptions so i can email them to the web developer (me).

Thanks in Advance
0
cghrmauritius
Asked:
cghrmauritius
  • 2
1 Solution
 
Beverley PortlockCommented:
Have you looked at set_exception_handler ?

http://uk2.php.net/manual/en/function.set-exception-handler.php
0
 
cghrmauritiusAuthor Commented:
Thanks i was having a very dumb moment
0
 
Beverley PortlockCommented:
"Thanks i was having a very dumb moment"

We all have those from time to time

:-D

Good luck with your project.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now