PHP Classes
Icontem

File: index.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Johan Barbier  >  Package Exception Error  >  index.php  
File: index.php
Role: Unit test script
Content type: text/plain
Description: Test file
Class: Package Exception Error
Turn PHP errors into catchable exceptions
 

Contents

Class file image Download
<?php
require_once 'class/package.exceptions.errors.php';

$oErr = new exceptionErrorHandler(true);

/**
 * OR direct call (class exceptionErrorHandler is static and can be used out of its context)
 */
//set_error_handler(array ('exceptionErrorHandler', 'errorHandler'));

$aWrong 'bla';

try {
    
sort($aWrong);
catch(Exception $e) {
    echo 
$e;
}
?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products