ServiceNotFoundException.php 468 B

12345678910111213141516
  1. <?php
  2. declare(strict_types=1);
  3. namespace Yansongda\Artful\Exception;
  4. use Psr\Container\NotFoundExceptionInterface;
  5. use Throwable;
  6. class ServiceNotFoundException extends Exception implements NotFoundExceptionInterface
  7. {
  8. public function __construct(string $message = '服务未找到', int $code = self::CONTAINER_SERVICE_NOT_FOUND, mixed $extra = null, ?Throwable $previous = null)
  9. {
  10. parent::__construct($message, $code, $extra, $previous);
  11. }
  12. }