From df00a88cb41a3ffd42cd8fce76997a5af4aa4362 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 14 Jan 2016 13:07:00 +0100 Subject: [PATCH] Forgot to add NoRouteMapException to 6834f355f291c444c778b49c49d8663f7098ae01 --- lib/noroutemapexception.php | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/noroutemapexception.php diff --git a/lib/noroutemapexception.php b/lib/noroutemapexception.php new file mode 100644 index 0000000000..6badbd830d --- /dev/null +++ b/lib/noroutemapexception.php @@ -0,0 +1,41 @@ +. + * + * @category Exception + * @package GNUsocial + * @author Mikael Nordfeldth + * @copyright 2016 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 NoRouteMapException extends Exception +{ + public $path; // The object with query that gave no results + + public function __construct($path) + { + $this->path = $path; + parent::__construct(sprintf(_('Could not find a handler for the given path %s.'), _ve($this->path))); + } +} -- 2.39.5