ExceptionTestHandler.php 573 B

12345678910111213141516171819202122232425262728
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of the Monolog package.
  4. *
  5. * (c) Jordi Boggiano <j.boggiano@seld.be>
  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 Monolog\Handler;
  11. use Exception;
  12. use Monolog\LogRecord;
  13. class ExceptionTestHandler extends TestHandler
  14. {
  15. /**
  16. * @inheritDoc
  17. */
  18. public function handle(LogRecord $record): bool
  19. {
  20. throw new Exception("ExceptionTestHandler::handle");
  21. parent::handle($record);
  22. }
  23. }