Documentation
enableException
usage
Sushee_shell->enableException( boolean enabled );
paramètres
enabled : whether to enable exception or not. Exceptions are disabled by default. XML messages are sent when errors occur.
exemples
include_once('../sushee/common.php');
$shell = new Sushee_Shell();
$shell->enableException(true);
$shell->addCommand( '<UPDATE><CONTACT/></UPDATE>');
$shell->execute(); // throws an exception with the message 'No ID was set -> no update has been processed.'