Class MethodNotDefined
Exception thrown in attempt to access a method that is not defined.
-
Exception
implements
Throwable
-
┗
LogicException
-
┗
BadFunctionCallException
-
┗
BadMethodCallException
-
┗
ICanBoogie\Prototype\MethodNotDefined
uses
ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
protected
get_method( void )
: string
protected
get_class( void )
: string
protected
get_instance( void )
: object|null
public
__construct( string $method, string|object $class_or_instance, string|null $message = null, integer $code = 500, Exception $previous = null )
Parameters
$method
- The method that is not defined.
$class_or_instance
- The name of the class or one of its instances.
$message
- If
null a message is formatted with $method and $class.
$code
$previous
Inheritdoc
Overrides
Exception::__construct
Methods inherited from Exception
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
Properties summary
Properties inherited from Exception
$code,
$file,
$line,
$message
Magic properties
public read-only
$method
: string
The method that is not defined.
public read-only
$class
: string
The class of the instance on which the method was invoked.
public read-only
$instance
: object|null
Instance on which the method was invoked, or null if only the class is available.