]> granicus.if.org Git - php/commitdiff
extend Exception
authorZeev Suraski <zeev@php.net>
Thu, 12 Feb 2004 12:37:04 +0000 (12:37 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 12 Feb 2004 12:37:04 +0000 (12:37 +0000)
tests/lang/error_2_exception_001.phpt

index e3d1217f428293f4301d9dfb73a92a425f050af9..61f45d47d578efd85da4974cb6438d3fd9ca2b75 100644 (file)
@@ -5,7 +5,7 @@ ZE2 errors caught as exceptions
 --FILE--
 <?php
 
-class MyException {
+class MyException extends Exception {
        function MyException($_errno, $_errmsg) {
                $this->errno = $_errno;
                $this->errmsg = $_errmsg;