Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-12-16 05:05:24 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-16 05:05:24 +0300
commita20ea9d76076caf39fe258d2b3080aaa3a00fbf4 (patch)
tree3c503dd1b1330dd680a6c5e1a4b276d622449e83 /core
parent85fb283d7db457ad9bec03bb89802266da969946 (diff)
Throw the exception UnexpectedWebsiteFoundException instead of default exception
Diffstat (limited to 'core')
-rw-r--r--core/Site.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Site.php b/core/Site.php
index deefbd4911..f79a442317 100644
--- a/core/Site.php
+++ b/core/Site.php
@@ -232,7 +232,7 @@ class Site
protected function get($name)
{
if (!isset(self::$infoSites[$this->id][$name])) {
- throw new Exception('The requested website id = ' . (int)$this->id . ' (or its property ' . $name . ') couldn\'t be found');
+ throw new UnexpectedWebsiteFoundException('The requested website id = ' . (int)$this->id . ' (or its property ' . $name . ') couldn\'t be found');
}
return self::$infoSites[$this->id][$name];
}