validaion_errors = $validaion_errors; $this->table = $table; $message = 'Validation errors'; // make sure everything is assigned properly parent::__construct($message, $code, $previous); } public function get_errors() { return $this->validaion_errors; } }