On 12/14/07, Ben Sgro <[EMAIL PROTECTED]> wrote:
> 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?

No. But you do know that you can catch multiple different exceptions
at the same time right?

try {
   // do something
} catch (MyCustomException $mce) {
   // handle this type of exception here
} catch (SomeOtherException $soe) {
   // Only SomeOtherException exceptions will be caught here
} catch (Exception $e) {
   // All other types of exceptions will be caught here
}

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
_______________________________________________
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

Reply via email to