|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-02-18 12:12 UTC] cool_lim_lp at yahoo dot com dot sg
Description:
------------
Feature request: is it possible to introduce the following type of 'catch' clause that is commonly available in OOP langs:
try
{
... do something ...
}
catch /*Catch all exceptions. We don't need to know what is it.*/
{
echo 'Error';
}
one reminder is that do remember to destroy the exception object that is thrown although it is not caught in a parameter.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 02:00:01 2025 UTC |
i know it can be done using: try { ... do something ... } catch (Exception $e) { echo 'error'; } but the thing is: i don't need the $e variable and in the Zend Studio, it keeps telling me that the $e variable is not used.