2
0

ExceptionTestHandler.php 541 B

1234567891011121314151617181920212223242526
  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. protected function write(LogRecord $record): void
  19. {
  20. throw new Exception("ExceptionTestHandler::handle");
  21. }
  22. }