note 80084 added to language.exceptions
| From: | Anonymous at osu1 dot php dot net | Date: | Fri, 28 Dec 2007 15:25:19 +0000 |
| Subject: | note 80084 added to language.exceptions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-134072@lists.php.net to get a copy of this message | ||
You can catch/throw the same exception multiple times if in need of nesting (without need of
creating tons of MyXExtension classes, just use as many try/catch pairs as needed:
<?php
try
{
try
{
// oops...
throw( new Exception() );
}
catch( Exception $e )
{
echo "we deal with his fault here...";
// and forward it
throw( new Exception() );
}
}
catch( Exception $e )
{
echo "Gotcha again";
}
?>
so if you just need to broadcast the exception till it reach your structure, you may try the above.
----
Server IP: 82.177.164.100
Probable Submitter: 83.16.237.74
----
Manual Page -- http://www.php.net/manual/en/language.exceptions.php
Edit -- https://master.php.net/note/edit/80084
Del: integrated -- https://master.php.net/note/delete/80084/integrated
Del: useless -- https://master.php.net/note/delete/80084/useless
Del: bad code -- https://master.php.net/note/delete/80084/bad+code
Del: spam -- https://master.php.net/note/delete/80084/spam
Del: non-english -- https://master.php.net/note/delete/80084/non-english
Del: in docs -- https://master.php.net/note/delete/80084/in+docs
Del: other reasons-- https://master.php.net/note/delete/80084
Reject -- https://master.php.net/note/reject/80084
Search -- https://master.php.net/manage/user-notes.php