. */ /* */ /**********************************************************************************/ namespace Thelia\Exception; use Thelia\Log\Tlog; /** * Created by JetBrains PhpStorm. * Date: 8/19/13 * Time: 3:24 PM * * Thrown when a Rule is badly implemented * * @package Coupon * @author Guillaume MOREL * */ class InvalidRuleException extends \RuntimeException { /** * InvalidConditionOperatorException thrown when a Rule is badly implemented * * @param string $className Class name */ public function __construct($className) { $message = 'Invalid Rule given to ' . $className; Tlog::getInstance()->addError($message); parent::__construct($message); } }