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:
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);
}
}