. * * @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 NoParentNoticeException extends ServerException { public $notice; // The notice which has no parent public function __construct(Notice $notice) { $this->notice = $notice; parent::__construct(sprintf(_('No parent for notice with ID "%s".'), $this->notice->id)); } }