Error code is called ecode now because of naming problems.
[AOOS.git] / index.php
blob2f19891fd94267712bf5bdc7a23727e2d2be55c3
1 <?php
3 require_once("AOOSCore.php");
5 $core = new AOOSCore();
7 function foo()
9 try
11 global $core;
12 throw new AOOSException($core, "Name goes here");
14 catch (AOOSException $e)
16 return false;
20 foo();
22 print "foo";
23 $core->printExceptions();