Example #1
0
 public function __construct($message = null, $code = 0, Exception $previous = null)
 {
     if ($code == 0) {
         Package_Operation_Message::set($message, 'error', 'transaction');
     } else {
         Package_Operation_Message::set($message, 'error', $code);
     }
     parent::__construct($message, $code);
 }
Example #2
0
 public function __construct($message = null, $code = 0, Exception $previous = null)
 {
     if ($code == 0) {
         Package_Import_Message::set($message, 'error', 'import');
     } else {
         Package_Import_Message::set($message, 'error', $code);
     }
     parent::__construct($message, $code);
 }