1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8class TikiDb_Exception_DuplicateEntry extends Exception 9{ 10 private $key; 11 12 function __construct($key, $entry) 13 { 14 parent::__construct(tr("Duplicate entry found (%0) for key '%1'", $entry, $key)); 15 $this->key = $key; 16 } 17} 18