statusCode; } else { $code = $exception->getCode(); } if ($exception instanceof \yii\base\Exception) { $name = $exception->getName(); } else { $name = 'Error'; } if ($code) { $name .= " (#$code)"; } if ($exception instanceof \yii\base\UserException) { $message = $exception->getMessage(); } else { $message = 'An internal server error occurred.'; } ?> beginPage(); ?> <?=$handler->htmlEncode($name); ?>

htmlEncode($name); ?>

htmlEncode($message)); ?>

The above error occurred while the Web server was processing your request.

Please contact us if you think this is a server error. Thank you.

endBody(); // to allow injecting code into body (mostly by Yii Debug Toolbar) ?> endPage(); ?>