$message .= "======\n".
'Error Class: '.get_class($prev)."\n".
'Error Message: '.$stripNewlines($prev->getMessage())."\n".
- 'Error Code: '.intval($prev->getCode())."\n".
+ 'Error Code: '.$stripNewlines($prev->getCode())."\n".
'File: '.$stripNewlines($prev->getFile()).' ('.$prev->getLine().')'."\n".
'Extra Information: '.($prev instanceof IExtraInformationException ? base64_encode(serialize($prev->getExtraInformation())) : '-')."\n".
'Stack Trace: '.json_encode(array_map(function ($item) {
<?php if ($e->getCode()) { ?>
<li>
<p class="exceptionFieldTitle">Error Code<span class="exceptionColon">:</span></p>
- <p class="exceptionFieldValue"><?php echo intval($e->getCode()); ?></p>
+ <p class="exceptionFieldValue"><?php echo StringUtil::encodeHTML($e->getCode()); ?></p>
</li>
<?php } ?>
<li>