class IndeterminateBundleException in Varbase Media 9.0.x
Same name and namespace in other branches
- 8.7 modules/entity_browser_generic_embed/src/Exception/IndeterminateBundleException.php \Drupal\entity_browser_generic_embed\Exception\IndeterminateBundleException
- 8.5 modules/entity_browser_generic_embed/src/Exception/IndeterminateBundleException.php \Drupal\entity_browser_generic_embed\Exception\IndeterminateBundleException
- 8.6 modules/entity_browser_generic_embed/src/Exception/IndeterminateBundleException.php \Drupal\entity_browser_generic_embed\Exception\IndeterminateBundleException
Exception thrown if no bundle can be determined from an input value.
Hierarchy
- class \Drupal\entity_browser_generic_embed\Exception\IndeterminateBundleException extends \Drupal\entity_browser_generic_embed\Exception\UnexpectedValueException
Expanded class hierarchy of IndeterminateBundleException
3 files declare their use of IndeterminateBundleException
- EntityFormProxy.php in modules/
entity_browser_generic_embed/ src/ Plugin/ EntityBrowser/ Widget/ EntityFormProxy.php - entity_browser_generic_embed.module in modules/
entity_browser_generic_embed/ entity_browser_generic_embed.module - Core media asset support for .
- MediaHelper.php in modules/
entity_browser_generic_embed/ src/ MediaHelper.php
File
- modules/
entity_browser_generic_embed/ src/ Exception/ IndeterminateBundleException.php, line 10
Namespace
Drupal\entity_browser_generic_embed\ExceptionView source
class IndeterminateBundleException extends \UnexpectedValueException {
/**
* IndeterminateBundleException constructor.
*
* @param mixed $value
* The input value.
* @param int $code
* (optional) The error code.
* @param \Exception|null $previous
* (optional) The previous exception, if any.
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IndeterminateBundleException:: |
public | function | IndeterminateBundleException constructor. |