* @param boolean $raw
* @see \Exception::getMessage()
*/
- public function getMessage($raw = false) {
+ public function _getMessage($raw = false) {
if ($raw) {
- return parent::getMessage();
+ return $this->getMessage();
}
return 'An error occured. Sorry.';
'name' => get_class($this),
'file' => $this->getFile(),
'line' => $this->getLine(),
- 'message' => $this->getMessage(),
+ 'message' => $this->_getMessage(),
'stacktrace' => $this->getTraceAsString()
));
WCF::getTPL()->display('userException');
<!DOCTYPE html>
<html>
<head>
- <title>Fatal error: <?php echo StringUtil::encodeHTML($this->getMessage()); ?></title>
+ <title>Fatal error: <?php echo StringUtil::encodeHTML($this->_getMessage()); ?></title>
<style>
.systemException {
font-family: 'Trebuchet MS', Arial, sans-serif !important;
</head>
<body>
<div class="systemException">
- <h1>Fatal error: <?php echo StringUtil::encodeHTML($this->getMessage()); ?></h1>
+ <h1>Fatal error: <?php echo StringUtil::encodeHTML($this->_getMessage()); ?></h1>
<?php if (DEBUG_MODE == 'debug') { ?>
<div>
<h2>Information:</h2>
<p>
- <b>error message:</b> <?php echo StringUtil::encodeHTML($this->getMessage()); ?><br>
+ <b>error message:</b> <?php echo StringUtil::encodeHTML($this->_getMessage()); ?><br>
<b>error code:</b> <?php echo intval($this->getCode()); ?><br>
<?php echo $this->information; ?>
<b>file:</b> <?php echo StringUtil::encodeHTML($this->getFile()); ?> (<?php echo $this->getLine(); ?>)<br>