for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace DaveRandom\Jom;
function unexpected(\Exception $e): \Error
{
return new \Error(\sprintf(
'Unexpected %s thrown in %s on line %d: %s',
\get_class($e), $e->getFile(), $e->getLine(), $e->getMessage()
), $e->getCode(), $e);
}