?
Solved

handling unhandled exceptions within a class

Posted on 2011-02-24
3
Medium Priority
?
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 2000 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

801 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