예제 #1
0
 /**
  * Initialize the input exception.
  *
  * @param \Magento\Framework\Phrase $phrase
  * @param \Exception $cause
  */
 public function __construct(Phrase $phrase = null, \Exception $cause = null)
 {
     if ($phrase === null) {
         $phrase = new Phrase('One or more input exceptions have occurred.');
     }
     parent::__construct($phrase, $cause);
 }
예제 #2
0
 /**
  * Initialize the input exception.
  *
  * @param \Magento\Framework\Phrase $phrase
  * @param \Exception $cause
  */
 public function __construct(Phrase $phrase = null, \Exception $cause = null)
 {
     if ($phrase === null) {
         $phrase = new Phrase(self::DEFAULT_MESSAGE);
     }
     parent::__construct($phrase, $cause);
 }