OpenXE/classes/Modules/Api/Exception/ResourceNotFoundException.php
2021-05-21 08:49:41 +02:00

19 lines
453 B
PHP

<?php
namespace Xentral\Modules\Api\Exception;
use Throwable;
use Xentral\Modules\Api\Http\Exception\HttpException;
use Xentral\Modules\Api\Error\ApiError;
class ResourceNotFoundException extends HttpException
{
public function __construct(
$message = 'Resource not found',
$code = ApiError::CODE_RESOURCE_NOT_FOUND,
Throwable $previous = null
) {
parent::__construct(404, $message, $code, $previous);
}
}