for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace jin2chen\ApiBundle\Response\ExceptionConverter;
use jin2chen\ApiBundle\Response\ExceptionConverterInterface;
use Throwable;
class GenericConverter implements ExceptionConverterInterface
{
public function convert(Throwable $e): array
return [
'status' => 500,
'code' => 0,
'message' => 'Internal Service Error.',
];
}