/** * 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); }
/** * 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); }