extend Exception

This commit is contained in:
Zeev Suraski 2004-02-12 12:37:04 +00:00
parent 08a1b6c476
commit 59a5701a8e

View 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;