Nouvelle classe Membre, différente. D'autres modifs....
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
class NoneObjectCallException extends Exception
|
||||
{
|
||||
public function __construct($message, $code = 0)
|
||||
{
|
||||
parent::__construct($message, $code);
|
||||
}
|
||||
|
||||
public function __construct($functionName, $className, $code = 0)
|
||||
{
|
||||
parent::__construct('You tried to call the function ' . $functionName . ' on a ' . $className . 'pointing on nothing. Try catch me the next time !', $code);
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user