blob: e1645974c370baabb3a3f25da9c0d0113dda5073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
namespace App\Errors;
use Matrix\Enums\ErrorCode;
use Symfony\Component\HttpFoundation\Response;
class UnauthorizedError extends Exception
{
public function __construct(string $message = "Unauthorized")
{
parent::__construct(ErrorCode::FORBIDDEN, $message, Response::HTTP_UNAUTHORIZED);
}
public function getAdditionalData(): array
{
return [];
}
}
|