NYCPHP Meetup

NYPHP.org

[nycphp-talk] Setting a catch dynamically

Ben Sgro ben at projectskyline.com
Fri Dec 14 14:59:45 EST 2007


haha

I want to set the customException dynamically.

I tried doing so by passing it in as a var ... catch ($var $e)

but that didn't seem to work.

Can it be done?

- Ben

Ben Sgro wrote:
> Hello again!
>
> In this code sample,
>
>            try
>            {
>                call_user_func($faSet, $this->getArguments($argSet));
>            }
>            catch ( customException $e )
>            {
>                throw new $exceptionToThrow;
>            }
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>



More information about the talk mailing list