ContainerException.php 449 B

12345678910111213141516
  1. <?php
  2. declare(strict_types=1);
  3. namespace Yansongda\Artful\Exception;
  4. use Psr\Container\ContainerExceptionInterface;
  5. use Throwable;
  6. class ContainerException extends Exception implements ContainerExceptionInterface
  7. {
  8. public function __construct(string $message = '容器异常', int $code = self::CONTAINER_ERROR, mixed $extra = null, ?Throwable $previous = null)
  9. {
  10. parent::__construct($message, $code, $extra, $previous);
  11. }
  12. }