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/ExceptionHandler.php')
-rw-r--r--core/ExceptionHandler.php20
1 files changed, 16 insertions, 4 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php
index aa20344dd1..b1a8a408db 100644
--- a/core/ExceptionHandler.php
+++ b/core/ExceptionHandler.php
@@ -24,7 +24,10 @@ class ExceptionHandler
set_exception_handler(array('Piwik\ExceptionHandler', 'handleException'));
}
- public static function handleException(Exception $exception)
+ /**
+ * @param Exception $exception
+ */
+ public static function handleException($exception)
{
if (Common::isPhpCliMode()) {
self::dieWithCliError($exception);
@@ -33,7 +36,10 @@ class ExceptionHandler
self::dieWithHtmlErrorPage($exception);
}
- public static function dieWithCliError(Exception $exception)
+ /**
+ * @param Exception $exception
+ */
+ public static function dieWithCliError($exception)
{
$message = $exception->getMessage();
@@ -54,7 +60,10 @@ class ExceptionHandler
exit(1);
}
- public static function dieWithHtmlErrorPage(Exception $exception)
+ /**
+ * @param Exception $exception
+ */
+ public static function dieWithHtmlErrorPage($exception)
{
Common::sendHeader('Content-Type: text/html; charset=utf-8');
@@ -63,7 +72,10 @@ class ExceptionHandler
exit(1);
}
- private static function getErrorResponse(Exception $ex)
+ /**
+ * @param Exception $ex
+ */
+ private static function getErrorResponse($ex)
{
$debugTrace = $ex->getTraceAsString();