Created
March 21, 2019 08:07
-
-
Save kanian/5319b9e7177e5683b40c2f2f1c62a52b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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