Solved

handling unhandled exceptions within a class

Posted on 2011-02-24
3
341 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

733 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