. * * @category Exception * @package GNUsocial * @author Mikael Nordfeldth * @copyright 2013 Free Software Foundation, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3 * @link http://www.gnu.org/software/social/ */ if (!defined('GNUSOCIAL')) { exit(1); } class EmptyPkeyValueException extends ServerException { public function __construct($called_class, $key=null) { // FIXME: translate the 'not specified' case? parent::__construct(sprintf(_('Empty primary key (%1$s) value was given to query for a "%2$s" object'), is_null($key) ? 'not specified' : _ve($key), $called_class)); } }