Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F455499
AphrontRequestExceptionHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
846 B
Referenced Files
None
Subscribers
None
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
();
}
}
File Metadata
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment