/** * handle an exception * * @param Exception $e exception to handle * @param Charcoal_EventContext $context event context * * @return boolean */ public function handleException($e, $context) { $ret = TRUE; if ($e instanceof Charcoal_CreateObjectException) { echo 'illegal object path: ' . $e->getObjectPath() . PHP_EOL; } else { if ($e instanceof Charcoal_ObjectPathFormatException) { echo 'bad object path format: ' . $e->getObjectPath() . PHP_EOL; } else { if ($e instanceof Charcoal_ModuleLoaderException) { echo 'module not found: ' . $e->getModulePath() . PHP_EOL; } else { $ret = FALSE; } } } return $ret; }