Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93149400
DrydockSlotLockException.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
Tue, Nov 26, 14:18
Size
622 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 14:18 (2 d)
Engine
blob
Format
Raw Data
Handle
22582703
Attached To
rPH Phabricator
DrydockSlotLockException.php
View Options
<?php
final
class
DrydockSlotLockException
extends
Exception
{
private
$lockMap
;
public
function
__construct
(
array
$locks
)
{
$this
->
lockMap
=
$locks
;
if
(
$locks
)
{
$lock_list
=
array
();
foreach
(
$locks
as
$lock
=>
$owner_phid
)
{
$lock_list
[]
=
pht
(
'"%s" (owned by "%s")'
,
$lock
,
$owner_phid
);
}
$message
=
pht
(
'Unable to acquire slot locks: %s.'
,
implode
(
', '
,
$lock_list
));
}
else
{
$message
=
pht
(
'Unable to acquire slot locks.'
);
}
parent
::
__construct
(
$message
);
}
public
function
getLockMap
()
{
return
$this
->
lockMap
;
}
}
Event Timeline
Log In to Comment