stellar-php/stellar

View on GitHub
src/Container/Exceptions/NotFoundException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace Stellar\Container\Exceptions;

use Psr\Container\NotFoundExceptionInterface;
use Stellar\Exceptions\Logic\OutOfRangeException;
use Throwable;

class NotFoundException extends OutOfRangeException implements ContainerException, NotFoundExceptionInterface
{
    public function __construct(string $id, ?Throwable $previous = null)
    {
        parent::__construct(
            'The service with id `{id}` is not found',
            0,
            $previous,
            \compact('id')
        );
    }
}