Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AlreadyExistsException.php
Go to the documentation of this file.
1 <?php
7 
9 
15 {
21  public function __construct(Phrase $phrase = null, \Exception $cause = null, $code = 0)
22  {
23  if ($phrase === null) {
24  $phrase = new Phrase('Unique constraint violation found');
25  }
26  parent::__construct($phrase, $cause, $code);
27  }
28 }
__construct(Phrase $phrase=null, \Exception $cause=null, $code=0)
$code
Definition: info.phtml:12