PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Andrey Nikishaev  >  Handling Notice and Warning as Exception  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: Handling Notice and Warning as Exception
Throw exceptions when PHP warnings are triggered
Author: By
Last change:
Date: 11 years ago
Size: 249 bytes


Class file image Download
$a = array();
try {
    print $a['agon'];
} catch (NoticeException $e) {
    print 'FIRST ERROR: '.$e;
try {
} catch (WarningException $e) {
    print 'SECOND ERROR: '.$e;

For more information send a message to info at phpclasses dot org.