ICanBoogie
  • Documentation
  • API Reference
  • Prototype 3.0.x
Namespaces
  • ICanBoogie
    • Prototype
Classes
  • Dummy
Exceptions
  • MethodNotDefined
  • MethodOutOfScope

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)
Namespace: ICanBoogie\Prototype
Located at Prototype/MethodNotDefined.php

Methods summary

protected get_method( void ) : string

Returns

string
protected get_class( void ) : string

Returns

string
protected get_instance( void ) : object|null

Returns

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
protected format_message( string $method, string $class ) : string

Formats exception message.

Formats exception message.

Parameters

$method
$class

Returns

string

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.

Prototype 3.0.x – Check on GitHub – API documentation generated by ApiGen