Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97821584
AphrontRequestExceptionHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jan 6, 15:27
Size
846 B
Mime Type
text/x-php
Expires
Wed, Jan 8, 15:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23451993
Attached To
rPH Phabricator
AphrontRequestExceptionHandler.php
View Options
<?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
();
}
}
Event Timeline
Log In to Comment