mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
extend Exception
This commit is contained in:
parent
08a1b6c476
commit
59a5701a8e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user