diff options
Diffstat (limited to 'core/Exception/Exception.php')
-rw-r--r-- | core/Exception/Exception.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/Exception/Exception.php b/core/Exception/Exception.php new file mode 100644 index 0000000000..106034bf5a --- /dev/null +++ b/core/Exception/Exception.php @@ -0,0 +1,30 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Exception; + +use Exception as PhpException; + +/** + * An exception whose message has HTML content. When these exceptions are caught + * the message will not be sanitized before being displayed to the user. + */ +abstract class Exception extends PhpException +{ + private $isHtmlMessage = false; + + public function setIsHtmlMessage() + { + $this->isHtmlMessage = true; + } + + public function isHtmlMessage() + { + return $this->isHtmlMessage; + } +}
\ No newline at end of file |