WIP : Refactor contraint/rule becomes conditions (more generic)
This commit is contained in:
@@ -30,23 +30,23 @@ use Thelia\Log\Tlog;
|
||||
* Date: 8/19/13
|
||||
* Time: 3:24 PM
|
||||
*
|
||||
* Thrown when a Rule is badly implemented
|
||||
* Thrown when a Condition is badly implemented
|
||||
*
|
||||
* @package Coupon
|
||||
* @package Condition
|
||||
* @author Guillaume MOREL <gmorel@openstudio.fr>
|
||||
*
|
||||
*/
|
||||
class InvalidRuleException extends \RuntimeException
|
||||
class InvalidConditionException extends \RuntimeException
|
||||
{
|
||||
/**
|
||||
* InvalidConditionOperatorException thrown when a Rule is badly implemented
|
||||
* InvalidConditionOperatorException thrown when a Condition is badly implemented
|
||||
*
|
||||
* @param string $className Class name
|
||||
*/
|
||||
public function __construct($className)
|
||||
{
|
||||
|
||||
$message = 'Invalid Rule given to ' . $className;
|
||||
$message = 'Invalid Condition given to ' . $className;
|
||||
Tlog::getInstance()->addError($message);
|
||||
|
||||
parent::__construct($message);
|
||||
Reference in New Issue
Block a user