Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Victor Bolshov  >  Error Reporter  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: An example of usage
Class: Error Reporter
Display exception call stack trace information
Author: By
Last change:
Date: 7 years ago
Size: 222 bytes
 

Contents

Class file image Download
<?php

try{
// Some code [possibly] generating an Exception
} catch (Exception $e) {
   require_once 
'/where/do/you/store/your/classes/ErrorReporter.php';
   
$ep = new ErrorReporter($e);
   
$ep->display();
}

?>