Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92647744
PhutilMethodNotImplementedException.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 22, 09:04
Size
829 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 09:04 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22476812
Attached To
rPHU libphutil
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
(
false
),
1
);
$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
));
}
}
}
}
Event Timeline
Log In to Comment