hi all

is it possible to throw the exception that you are using
from inside a try catch block
eg.
PHP Code:
 try {
 if (
file_exists($file)) exec('blah');
 else throw new 
IoException('file does not exist');
 }
 catch (
IoException $e) {
 return 
$e->getMessage();
 } 
would that work?
if it would, is there a better way to do this?

thanks
dave