* @package com.woltlab.wcf * @subpackage system.exception * @category Community Framework */ abstract class UserException extends \Exception implements IPrintableException { /** * @see \wcf\system\exception\IPrintableException::show() */ public function show() { if (WCF::debugModeIsEnabled()) { echo '
' . $this->getTraceAsString() . '
'; } else { echo '
' . $this->_getMessage() . '
'; } } /** * Returns the exception's message, should be used to sanitize the output. * * @return string */ protected function _getMessage() { return $this->getMessage(); } }