app/Plugin/SlnPayment42/Exception/SlnShoppingException.php line 13

Open in your IDE?
  1. <?php
  2. namespace Plugin\SlnPayment42\Exception;
  3. use Eccube\Exception\ShoppingException;
  4. class SlnShoppingException extends ShoppingException
  5. {
  6.     
  7.     protected $allErrorMess = array();
  8.     protected $orderId;
  9.     
  10.     public function __construct($message null$code null$previous null$allErrorMess$orderId null)
  11.     {
  12.         parent::__construct($message$code$previous);
  13.         $this->allErrorMess $allErrorMess;
  14.         $this->orderId $orderId;
  15.     }
  16.     
  17.     public function getSlnErrorCode()
  18.     {
  19.         return $this->allErrorMess[0];
  20.     }
  21.     
  22.     public function getSlnErrorName()
  23.     {
  24.         return $this->allErrorMess[1];
  25.     }
  26.     
  27.     public function getSlnErrorUser()
  28.     {
  29.         return $this->allErrorMess[2];
  30.     }
  31.     
  32.     public function getSlnErrorDetail()
  33.     {
  34.         return $this->allErrorMess[3];
  35.     }
  36.     public function getSlnErrorOrderId()
  37.     {
  38.         return $this->orderId;
  39.     }
  40.     
  41.     public function checkSystemError()
  42.     {
  43.         $errorCode = array('K01','K02','K03','K04','K05','K06','K07','K08','K09','K10',
  44.                             'K11','K12','K13','K14','K22','K23',
  45.                             'K30','K31','K32','K33','K34','K35','K36',
  46.                             'K37','K39','K45','K46','K47','K48','K96','K97','K98','K99',
  47.                             'KG8','C01','C02','C03','C70','C71','C98',
  48.                             'K28','K50','K53','K54','K55','K56','K57','K58',
  49.                             'K59','K61','K96','K98','K99','W01','W02','W03','W04',
  50.                             'W05','W06','W99'
  51.         );
  52.         return in_array($this->getSlnErrorCode(), $errorCode);
  53.     }
  54. }