Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100790027
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
Sun, Feb 2, 19:02
Size
622 B
Mime Type
text/x-php
Expires
Tue, Feb 4, 19:02 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24031922
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