Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91181005
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
Fri, Nov 8, 17:30
Size
622 B
Mime Type
text/x-php
Expires
Sun, Nov 10, 17:30 (2 d)
Engine
blob
Format
Raw Data
Handle
22211347
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