Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
PHP
at commit 034ff3c8
12345678910111213141516171819202122232425262728293031323334353637<?php
/** * React to an unhandled exception escaping request handling in a controller * and convert it into a response. * * These handlers are generally used to render error pages, but they may * also perform more specialized handling in situations where an error page * is not appropriate. */abstract class AphrontRequestExceptionHandler extends Phobject {
abstract public function getRequestExceptionHandlerPriority();
public function shouldLogException( AphrontRequest $request, Exception $ex) { return null; }
abstract public function canHandleRequestException( AphrontRequest $request, Exception $ex);
abstract public function handleRequestException( AphrontRequest $request, Exception $ex);
final public static function getAllHandlers() { return id(new PhutilClassMapQuery()) ->setAncestorClass(__CLASS__) ->setSortMethod('getRequestExceptionHandlerPriority') ->execute(); }
}