. */ /* */ /*************************************************************************************/ namespace Thelia\Exception; use Thelia\Log\Tlog; /** * Created by JetBrains PhpStorm. * Date: 8/19/13 * Time: 3:24 PM * * Thrown when the Adapter is not set * * @package Coupon * @author Guillaume MOREL * */ class MissingAdapterException extends \RuntimeException { /** * {@inheritdoc} */ public function __construct($message, $code = null, $previous = null) { Tlog::getInstance()->addError($message); parent::__construct($message, $code, $previous); } }