593 ]; /** * table column that triggers the exception * @var string */ private $field; public function __construct(string $message, string $field = ''){ parent::__construct($message, 2000); $this->field = $field; } /** * get error object * @return \stdClass */ public function getError() : \stdClass { $error = parent::getError(); $error->field = $this->field; return $error; } }