blob: ccb124ea05634ddaeeae1ee5edcfdaec4e8eb548 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
namespace App\Errors;
abstract class Exception extends \RuntimeException
{
public function __construct(private ErrorCode $errorCode, string $message, int $httpCode)
{
parent::__construct($message, $httpCode);
}
public function getErrorCode(): ErrorCode
{
return $this->errorCode;
}
/**
* @return void
*/
abstract public function getAdditionalData(): array;
}
|