Solved

handling unhandled exceptions within a class

Posted on 2011-02-24
3
337 Views
Last Modified: 2012-06-27
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
Comment
Question by:cghrmauritius
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 500 total points
ID: 34968642
Have you looked at set_exception_handler ?

http://uk2.php.net/manual/en/function.set-exception-handler.php
0
 

Author Closing Comment

by:cghrmauritius
ID: 34968707
Thanks i was having a very dumb moment
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34968826
"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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now