Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101634395
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
Wed, Feb 12, 07:20
Size
846 B
Mime Type
text/x-php
Expires
Fri, Feb 14, 07:20 (2 d)
Engine
blob
Format
Raw Data
Handle
24187666
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