for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Shoman4eg\Nalog\Exception\Domain;
/**
* @author Tobias Nyholm <[email protected]>
*/
final class UnauthorizedException extends ClientException
{
public function __construct($message = '')
$decodedMessage = json_decode($message, true);
parent::__construct($decodedMessage['message'] ?? '');
}