blob: 0efbb1650e1f7398d1e5ee04c9f07f674ebf4a1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/**
* Piwik - free/libre analytics platform
*
* @link https://matomo.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;
}
}
|