push
github
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
| 1 |
<?php
|
|
| 2 |
|
|
| 3 |
namespace Tochka\Promises\Exceptions; |
|
| 4 |
|
|
| 5 |
class NonSerializableException extends \RuntimeException |
|
| 6 |
{
|
|
| 7 |
public function __construct(\Throwable $throwable) |
|
| 8 |
{
|
|
|
NEW
|
parent::__construct(
|
× |
|
NEW
|
sprintf(
|
× |
|
NEW
|
'Exception [%s]: %s',
|
× |
|
NEW
|
get_class($throwable), |
× |
|
NEW
|
$throwable->getMessage(),
|
× |
|
NEW
|
), |
× |
|
NEW
|
(int) $throwable->getCode(), |
× |
|
NEW
|
); |
× |
| 17 |
} |
|
| 18 |
} |