Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BulkException.php
Go to the documentation of this file.
1 <?php
8 
10 
17 {
21  private $data;
22 
33  public function __construct(Phrase $phrase = null, \Exception $cause = null, $code = 0)
34  {
35  if ($phrase === null) {
36  $phrase = new Phrase('One or more input exceptions have occurred while processing bulk.');
37  }
38  parent::__construct($phrase, $cause, $code);
39  }
40 
44  public function addData($data)
45  {
46  $this->data = $data;
47  }
48 
52  public function getData()
53  {
54  return $this->data;
55  }
56 }
__construct(Phrase $phrase=null, \Exception $cause=null, $code=0)
$code
Definition: info.phtml:12