[nycphp-talk] Setting a catch dynamically
Rob Marscher
rmarscher at beaffinitive.com
Fri Dec 14 15:02:55 EST 2007
On Dec 14, 2007, at 2:53 PM, Ben Sgro wrote:
> Hello again!
>
> In this code sample,
>
> try
> {
> call_user_func($faSet, $this->getArguments($argSet));
> }
> catch ( customException $e )
> {
> throw new $exceptionToThrow;
> }
Exceptions will bubble all the way up to the first place the code was
called from... so usually you don't have to catch an exception just to
throw another one.
More information about the talk
mailing list