Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109884904
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, Apr 23, 20:16
Size
962 B
Mime Type
text/x-php
Expires
Fri, Apr 25, 20:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25745542
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
();
public
function
shouldLogException
(
AphrontRequest
$request
,
Exception
$ex
)
{
return
null
;
}
abstract
public
function
canHandleRequestException
(
AphrontRequest
$request
,
Exception
$ex
);
abstract
public
function
handleRequestException
(
AphrontRequest
$request
,
Exception
$ex
);
final
public
static
function
getAllHandlers
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setSortMethod
(
'getRequestExceptionHandlerPriority'
)
->
execute
();
}
}
Event Timeline
Log In to Comment