Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F36276525
PhabricatorClusterExceptionHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
960 B
Subscribers
None
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
canHandleRequestException
(
AphrontRequest
$request
,
Exception
$ex
)
{
return
(
$ex
instanceof
PhabricatorClusterException
);
}
public
function
handleRequestException
(
AphrontRequest
$request
,
Exception
$ex
)
{
$viewer
=
$this
->
getViewer
(
$request
);
$title
=
$ex
->
getExceptionTitle
();
$dialog
=
id
(
new
AphrontDialogView
())
->
setTitle
(
$title
)
->
setUser
(
$viewer
)
->
appendParagraph
(
$ex
->
getMessage
())
->
addCancelButton
(
'/'
,
pht
(
'Proceed With Caution'
));
return
id
(
new
AphrontDialogResponse
())
->
setDialog
(
$dialog
)
->
setHTTPResponseCode
(
500
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Feb 22, 6:46 PM (9 h, 10 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
12/63/6a9261eb7871d13c838ffa71cd5b
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment