Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92650692
PhabricatorClusterExceptionHandler.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
Fri, Nov 22, 09:43
Size
975 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 09:43 (2 d)
Engine
blob
Format
Raw Data
Handle
22478179
Attached To
rPH Phabricator
PhabricatorClusterExceptionHandler.php
View Options
<?php
final
class
PhabricatorClusterExceptionHandler
extends
PhabricatorRequestExceptionHandler
{
public
function
getRequestExceptionHandlerPriority
()
{
return
300000
;
}
public
function
getRequestExceptionHandlerDescription
()
{
return
pht
(
'Handles runtime problems with cluster configuration.'
);
}
public
function
canHandleRequestThrowable
(
AphrontRequest
$request
,
$throwable
)
{
return
(
$throwable
instanceof
PhabricatorClusterException
);
}
public
function
handleRequestThrowable
(
AphrontRequest
$request
,
$throwable
)
{
$viewer
=
$this
->
getViewer
(
$request
);
$title
=
$throwable
->
getExceptionTitle
();
$dialog
=
id
(
new
AphrontDialogView
())
->
setTitle
(
$title
)
->
setUser
(
$viewer
)
->
appendParagraph
(
$throwable
->
getMessage
())
->
addCancelButton
(
'/'
,
pht
(
'Proceed With Caution'
));
return
id
(
new
AphrontDialogResponse
())
->
setDialog
(
$dialog
)
->
setHTTPResponseCode
(
500
);
}
}
Event Timeline
Log In to Comment