PHP Classes

File: example.php

Recommend this page to a friend!
  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: 17 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();
}

?>