/**
  * Constructor
  *
  * @param string $identifier
  * @param array  $item
  */
 public function __construct($identifier, array $item)
 {
     $messageParameters = ['%identifier%' => $identifier];
     $exception = new ParametrizedException($this->messageTemplate, $messageParameters);
     parent::__construct($exception->getMessage(), $item, $messageParameters);
 }
 /**
  * Constructor
  *
  * @param string $code
  * @param string $value
  * @param array  $item
  */
 public function __construct($code, $value, array $item)
 {
     $this->messageParameters = ['%code%' => $code, '%value%' => $value];
     $exception = new ParametrizedException($this->messageTemplate, $this->messageParameters);
     parent::__construct($exception->getMessage(), $item, $this->messageParameters);
 }