Path: blob/master/src/aphront/handler/AphrontRequestExceptionHandler.php
12241 views
<?php12/**3* React to an unhandled exception escaping request handling in a controller4* and convert it into a response.5*6* These handlers are generally used to render error pages, but they may7* also perform more specialized handling in situations where an error page8* is not appropriate.9*/10abstract class AphrontRequestExceptionHandler extends Phobject {1112abstract public function getRequestExceptionHandlerPriority();1314abstract public function canHandleRequestThrowable(15AphrontRequest $request,16$throwable);1718abstract public function handleRequestThrowable(19AphrontRequest $request,20$throwable);2122final public static function getAllHandlers() {23return id(new PhutilClassMapQuery())24->setAncestorClass(__CLASS__)25->setSortMethod('getRequestExceptionHandlerPriority')26->execute();27}2829}303132