Page MenuHomePhorge

AphrontRequestExceptionHandler.php
No OneTemporary

Size
846 B
Referenced Files
None
Subscribers
None

AphrontRequestExceptionHandler.php

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

File Metadata

Mime Type
text/x-php
Expires
Mon, May 5, 7:02 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
70460
Default Alt Text
AphrontRequestExceptionHandler.php (846 B)

Event Timeline