The BadMethodCallException class

(PHP 5 >= 5.1.0, PHP 7)

Introdução

Exception thrown if a callback refers to an undefined method or if some arguments are missing.

Sinopse da classe

BadMethodCallException extends BadFunctionCallException {
/* Propriedades herdadas */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
/* Métodos herdados */
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 string Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private string Exception::__clone ( void )
}
add a note add a note

User Contributed Notes 1 note

up
1
piotr at polak dot ro
3 months ago
BadMethodCallException is typically used in conjunction with __call magic method.
To Top