This commit is contained in:
Manuel Raynaud
2013-09-11 08:27:40 +02:00
parent 990ab0e094
commit 70d93d1daa
155 changed files with 541 additions and 809 deletions

View File

@@ -23,8 +23,6 @@
namespace Thelia\Exception;
use Thelia\Log\Tlog;
class TaxEngineException extends \RuntimeException
{
const UNKNOWN_EXCEPTION = 0;
@@ -35,8 +33,9 @@ class TaxEngineException extends \RuntimeException
const BAD_AMOUNT_FORMAT = 601;
public function __construct($message, $code = null, $previous = null) {
if($code === null) {
public function __construct($message, $code = null, $previous = null)
{
if ($code === null) {
$code = self::UNKNOWN_EXCEPTION;
}
parent::__construct($message, $code, $previous);