public function LibraryNotInstalledException::__construct in Libraries API 8.3
Constructs a library exception.
Parameters
\Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface $library: The library that is not installed.
string $message: (optional) The exception message.
int $code: (optional) The error code.
\Exception $previous: (optional) The previous exception.
File
- src/
ExternalLibrary/ Exception/ LibraryNotInstalledException.php, line 28
Class
- LibraryNotInstalledException
- Provides an exception for a library that is not installed.
Namespace
Drupal\libraries\ExternalLibrary\ExceptionCode
public function __construct(LocalLibraryInterface $library, $message = '', $code = 0, \Exception $previous = NULL) {
$this->library = $library;
$message = $message ?: "The library '{$this->library->getId()}' is not installed.";
parent::__construct($message, $code, $previous);
}