public function IndeterminateBundleException::__construct in Lightning Media 8
Same name and namespace in other branches
- 8.4 src/Exception/IndeterminateBundleException.php \Drupal\lightning_media\Exception\IndeterminateBundleException::__construct()
- 8.2 src/Exception/IndeterminateBundleException.php \Drupal\lightning_media\Exception\IndeterminateBundleException::__construct()
- 8.3 src/Exception/IndeterminateBundleException.php \Drupal\lightning_media\Exception\IndeterminateBundleException::__construct()
IndeterminateBundleException constructor.
Parameters
mixed $value: The input value.
int $code: (optional) The error code.
\Exception|NULL $previous: (optional) The previous exception, if any.
File
- src/
Exception/ IndeterminateBundleException.php, line 22
Class
- IndeterminateBundleException
- Exception thrown if no bundle can be determined from an input value.
Namespace
Drupal\lightning_media\ExceptionCode
public function __construct($value, $code = 0, \Exception $previous = NULL) {
$message = sprintf('Could not match any bundles to input: %s', $value instanceof EntityInterface ? $value
->label() : var_export($value, TRUE));
parent::__construct($message, $code, $previous);
}