|
123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
-
-
- namespace yii\di;
-
- use \yii\base\InvalidConfigException;
-
-
- class NotInstantiableException extends InvalidConfigException
- {
-
-
- public function __construct($class, $message = null, $code = 0, \Exception $previous = null)
- {
- if ($message === null) {
- $message = "Can not instantiate $class.";
- }
- parent::__construct($message, $code, $previous);
- }
-
-
-
- public function getName()
- {
- return 'Not instantiable';
- }
- }
|