Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F448823
PhabricatorClusterExceptionHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
975 B
Referenced Files
None
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
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 6:46 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
67265
Default Alt Text
PhabricatorClusterExceptionHandler.php (975 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment