2021-04-08 08:08:59 +00:00
< ? php
/*
* This file is part of the Symfony package .
*
* ( c ) Fabien Potencier < fabien @ symfony . com >
*
* For the full copyright and license information , please view the LICENSE
* file that was distributed with this source code .
*/
namespace Symfony\Component\Debug\Exception ;
2022-12-14 15:55:13 +00:00
@ trigger_error ( sprintf ( 'The "%s" class is deprecated since Symfony 4.4, use "%s" instead.' , UndefinedMethodException :: class , \Symfony\Component\ErrorHandler\Error\UndefinedMethodError :: class ), \E_USER_DEPRECATED );
2021-04-08 08:08:59 +00:00
/**
* Undefined Method Exception .
*
* @ author Grégoire Pineau < lyrixx @ lyrixx . info >
2022-12-14 15:55:13 +00:00
*
* @ deprecated since Symfony 4.4 , use Symfony\Component\ErrorHandler\Error\UndefinedMethodError instead .
2021-04-08 08:08:59 +00:00
*/
class UndefinedMethodException extends FatalErrorException
{
2022-12-14 15:55:13 +00:00
public function __construct ( string $message , \ErrorException $previous )
2021-04-08 08:08:59 +00:00
{
parent :: __construct (
$message ,
$previous -> getCode (),
$previous -> getSeverity (),
$previous -> getFile (),
$previous -> getLine (),
null ,
true ,
null ,
$previous -> getPrevious ()
);
$this -> setTrace ( $previous -> getTrace ());
}
}