summaryrefslogtreecommitdiff
path: root/src/Errors/NotFoundError.php
blob: a128509267a3ce4b38a7cfd4fa10b9fdeb21a5d8 (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 NotFoundError extends Exception
{
  public function __construct(string $message = "404")
  {
    parent::__construct(ErrorCode::NOT_FOUND, $message, Response::HTTP_NOT_FOUND);
  }

  public function getAdditionalData(): array
  {
    return [];
  }
}