3
final class AphrontUnhandledExceptionResponse
4
extends AphrontStandaloneHTMLResponse {
8
public function setException(Exception $exception) {
9
$this->exception = $exception;
13
public function getHTTPResponseCode() {
17
protected function getResources() {
19
'css/application/config/config-template.css',
20
'css/application/config/unhandled-exception.css',
24
protected function getResponseTitle() {
25
return pht('Unhandled Exception');
28
protected function getResponseBodyClass() {
29
return 'unhandled-exception';
32
protected function getResponseBody() {
33
$ex = $this->exception;
35
if ($ex instanceof AphrontUsageException) {
36
$title = $ex->getTitle();
38
$title = get_class($ex);
41
$body = $ex->getMessage();
42
$body = phutil_escape_html_newlines($body);
47
'class' => 'unhandled-exception-detail',
53
'class' => 'unhandled-exception-title',
59
'class' => 'unhandled-exception-body',
65
protected function buildPlainTextResponseString() {
66
$ex = $this->exception;