cloudinary-8.x-1.x-dev/modules/cloudinary_media_library_widget/src/Plugin/Exception/CloudinaryMediaNotFoundException.php
modules/cloudinary_media_library_widget/src/Plugin/Exception/CloudinaryMediaNotFoundException.php
<?php
namespace Drupal\cloudinary_media_library_widget\Plugin\Exception;
/**
* Cloudinary media exception.
*
* @deprecated in cloudinary:3.0.0 and is removed from cloudinary:4.0.0. Use
* a dedicated source plugin instead.
*
* @see https://www.drupal.org/project/cloudinary/issues/3314722
*/
class CloudinaryMediaNotFoundException extends \Exception {
/**
* Construct a CloudinaryMediaNotFoundException exception.
*
* @param string $type
* The resource type that was not found.
* @param string $message
* The exception message.
* @param int $code
* The exception code.
* @param \Exception|null $previous
* The previous throwable used for exception chaining.
*
* @see \Exception
*/
public function __construct($type, $message = '', $code = 0, \Exception $previous = NULL) {
if (empty($message)) {
$message = sprintf("Cloudinary media with resource type '%s' was not found.", $type);
}
parent::__construct($message, $code, $previous);
}
}
