Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98032329
PhutilInvalidStateException.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
Wed, Jan 8, 21:37
Size
622 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 21:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23489066
Attached To
rPHU libphutil
PhutilInvalidStateException.php
View Options
<?php
final
class
PhutilInvalidStateException
extends
Exception
{
private
$callee
;
private
$function
;
public
function
__construct
(
$function
,
$callee
=
null
)
{
if
(
$callee
===
null
)
{
$callee
=
idx
(
debug_backtrace
(),
1
);
$callee
=
idx
(
$callee
,
'function'
);
}
$this
->
callee
=
$callee
;
$this
->
function
=
$function
;
parent
::
__construct
(
pht
(
'Call %s before calling %s!'
,
$this
->
function
.
'()'
,
$this
->
callee
.
'()'
));
}
public
function
getCallee
()
{
return
$this
->
callee
;
}
public
function
getFunction
()
{
return
$this
->
function
;
}
}
Event Timeline
Log In to Comment