Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889591
PhutilMethodNotImplementedException.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
932 B
Referenced Files
None
Subscribers
None
PhutilMethodNotImplementedException.php
View Options
<?php
/**
* An exception thrown when a method is called on a class which does not
* provide an implementation for the called method. This is sometimes the case
* when a base class expects subclasses to provide their own implementations,
* for example.
*/
final
class
PhutilMethodNotImplementedException
extends
Exception
{
public
function
__construct
(
$message
=
null
)
{
if
(
$message
)
{
parent
::
__construct
(
$message
)
;
}
else
{
$caller
=
idx
(
debug_backtrace
(
)
,
1
)
;
if
(
isset
(
$caller
[
'object'
]
)
)
{
$class
=
get_class
(
$caller
[
'object'
]
)
;
}
else
{
$class
=
idx
(
$caller
,
'class'
)
;
}
$function
=
idx
(
$caller
,
'function'
)
;
if
(
$class
)
{
parent
::
__construct
(
pht
(
'Method %s in class %s is not implemented!'
,
$function
,
$class
)
)
;
}
else
{
parent
::
__construct
(
pht
(
'Function %s is not implemented!'
,
$function
)
)
;
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 12:23 (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113636
Default Alt Text
PhutilMethodNotImplementedException.php (932 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment