diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-12-16 05:05:24 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-12-16 05:05:24 +0300 |
commit | a20ea9d76076caf39fe258d2b3080aaa3a00fbf4 (patch) | |
tree | 3c503dd1b1330dd680a6c5e1a4b276d622449e83 /core | |
parent | 85fb283d7db457ad9bec03bb89802266da969946 (diff) |
Throw the exception UnexpectedWebsiteFoundException instead of default exception
Diffstat (limited to 'core')
-rw-r--r-- | core/Site.php | 2 |
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]; } |