3 final class PhabricatorClusterExceptionHandler
4 extends PhabricatorRequestExceptionHandler
{
6 public function getRequestExceptionHandlerPriority() {
10 public function getRequestExceptionHandlerDescription() {
11 return pht('Handles runtime problems with cluster configuration.');
14 public function canHandleRequestThrowable(
15 AphrontRequest
$request,
17 return ($throwable instanceof PhabricatorClusterException
);
20 public function handleRequestThrowable(
21 AphrontRequest
$request,
24 $viewer = $this->getViewer($request);
26 $title = $throwable->getExceptionTitle();
28 $dialog = id(new AphrontDialogView())
31 ->appendParagraph($throwable->getMessage())
32 ->addCancelButton('/', pht('Proceed With Caution'));
34 return id(new AphrontDialogResponse())
36 ->setHTTPResponseCode(500);