Skip to content

Instantly share code, notes, and snippets.

@kanian
Created March 21, 2019 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanian/5319b9e7177e5683b40c2f2f1c62a52b to your computer and use it in GitHub Desktop.
Save kanian/5319b9e7177e5683b40c2f2f1c62a52b to your computer and use it in GitHub Desktop.
<?php
namespace Kanian\ContainerX\Exceptions;
use Exception;
use Psr\Container\NotFoundExceptionInterface;
class DependencyNotRegisteredException extends Exception implements NotFoundExceptionInterface
{
public function __construct($dependency, $code = 0, Exception $previous = null)
{
$message = "Dependency {$dependency} is not registered";
parent::__construct($message, $code, $previous);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment