UndefinedMethodException.php 806 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Debug\Exception;
  11. /**
  12. * Undefined Method Exception.
  13. *
  14. * @author Grégoire Pineau <lyrixx@lyrixx.info>
  15. */
  16. class UndefinedMethodException extends FatalErrorException
  17. {
  18. public function __construct($message, \ErrorException $previous)
  19. {
  20. parent::__construct(
  21. $message,
  22. $previous->getCode(),
  23. $previous->getSeverity(),
  24. $previous->getFile(),
  25. $previous->getLine(),
  26. $previous->getPrevious()
  27. );
  28. $this->setTrace($previous->getTrace());
  29. }
  30. }