Error raise documentation problems
| From: | LIMBOURG Arnaud | Date: | Wed, 27 Aug 2003 07:24:43 +0000 |
| Subject: | Error raise documentation problems | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-20609@lists.php.net to get a copy of this message | ||
69 $obj = new mypackage;
should be
69 $obj = new MyTemplatePackage;
40 $msg = " Error:
$codeisanunknownerrorcodeforpackageMyPackage";
shoul be
40 $msg = "Error: $code is an unknown error code for
package MyTemplatePackage";
45 case MYTEMPLATEPACKAGE_ERROR_EXPECTING_TAG :
46 $msg = 'The %tag% tag should be one of %list%';
47 break;
90 $err = Error_Raise::error('MyTemplatePackage',
MYTEMPLATEPACKAGE_ERROR_EXPECTING_TAG,
91 array('tag' => '{flubber}', array('{hooper}',
'{willis}',
'{burns}')));
List isn't mentionned line 91. I tried doing
91 array('tag' => '{flubber}', 'list' =>
array('{hooper}',
'{willis}', '{burns}')));
But the replacement doesn't occur.
Arnaud.