• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tochka-developers / queue-promises / 11937060552

20 Nov 2024 03:58PM UTC coverage: 46.235% (-0.4%) from 46.616%
11937060552

push

github

darkdarin
fix: при ошибке сериализации исключения - конвертируем исключение в то, которое точно сериализуется

2 of 14 new or added lines in 2 files covered. (14.29%)

614 of 1328 relevant lines covered (46.23%)

2.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Exceptions/NonSerializableException.php
1
<?php
2

3
namespace Tochka\Promises\Exceptions;
4

5
class NonSerializableException extends \RuntimeException
6
{
7
    public function __construct(\Throwable $throwable)
8
    {
NEW
9
        parent::__construct(
×
NEW
10
            sprintf(
×
NEW
11
                'Exception [%s]: %s',
×
NEW
12
                get_class($throwable),
×
NEW
13
                $throwable->getMessage(),
×
NEW
14
            ),
×
NEW
15
            (int) $throwable->getCode(),
×
NEW
16
        );
×
17
    }
18
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc