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
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-10-27 08:30:14 +0300
committerdiosmosis <benaka@piwik.pro>2014-10-28 06:46:32 +0300
commit4a6c3b3e3109e2d57076ad62a4bf9f8118ca2bd7 (patch)
treec9b5894be69dbd2b9b1d8265caf7dc6447580f98 /core/Session.php
parentafb1c374f969731bbc7f4e3f0157cc25cce8672e (diff)
Replace all uses of Piwik_ExitWithMessage (except one) with throwing exceptions & include HtmlMessageException class for exceptions w/ HTML content in their message.
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Session.php b/core/Session.php
index cb08f0f697..24595cd764 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -9,6 +9,7 @@
namespace Piwik;
use Exception;
+use Piwik\Exceptions\HtmlMessageException;
use Piwik\Session\SaveHandler\DbTable;
use Zend_Session;
@@ -38,6 +39,7 @@ class Session extends Zend_Session
*
* @param array|bool $options An array of configuration options; the auto-start (bool) setting is ignored
* @return void
+ * @throws Exception if starting a session fails
*/
public static function start($options = false)
{
@@ -130,7 +132,7 @@ class Session extends Zend_Session
$e->getMessage()
);
- Piwik_ExitWithMessage($message, $e->getTraceAsString());
+ throw new HtmlMessageException($message, $e->getCode(), $e);
}
}