PHP 5.6.30 Released

La clase BadFunctionCallException

(PHP 5 >= 5.1.0, PHP 7)


Lanza una excepción si la llamada de retorno hace referencia a una función no definida o faltan algunos de los argumentos.

Sinopsis de la Clase

BadFunctionCallException extends LogicException {
/* Propiedades heredadas */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
/* Métodos heredados */
final public string Exception::getMessage ( void )
final public Exception Exception::getPrevious ( void )
final public mixed Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
add a note add a note

User Contributed Notes 2 notes

tom at tomwardrop dot com
7 years ago
A typical use for this exception, is in conjunction with the is_callable() function.
Dawid Krysiak
5 years ago
Direct known subclasses:

So BadMethodCallException can be used in case the subject function is or should be a part of class / object - it's use defines the case more precisely.
To Top