Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281660
PhutilInvalidStateException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
622 B
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Mar 24, 00:32 (1 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115582
Default Alt Text
PhutilInvalidStateException.php (622 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment