ClassNotFoundException.php 828 B

123456789101112131415161718192021222324252627282930313233
  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. * Class (or Trait or Interface) Not Found Exception.
  13. *
  14. * @author Konstanton Myakshin <koc-dp@yandex.ru>
  15. */
  16. class ClassNotFoundException 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. }