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
123456789101112131415161718192021222324252627282930313233<?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 getRequestExceptionHandlerDescription();
abstract public function getRequestExceptionHandlerPriority();
abstract public function canHandleRequestThrowable( AphrontRequest $request, $throwable);
abstract public function handleRequestThrowable( AphrontRequest $request, $throwable);
final public static function getAllHandlers() { return id(new PhutilClassMapQuery()) ->setAncestorClass(self::class) ->setSortMethod('getRequestExceptionHandlerPriority') ->execute(); }
}