public function UnknownLibraryVersionException::__construct in Libraries API 8.3
Constructs a library exception.
Parameters
\Drupal\libraries\ExternalLibrary\Version\VersionedLibraryInterface $library: The library.
string $message: (optional) The exception message.
int $code: (optional) The error code.
\Exception $previous: (optional) The previous exception.
File
- src/
ExternalLibrary/ Exception/ UnknownLibraryVersionException.php, line 28
Class
- UnknownLibraryVersionException
- Provides an exception for libraries whose version has not been detected.
Namespace
Drupal\libraries\ExternalLibrary\ExceptionCode
public function __construct(VersionedLibraryInterface $library, $message = '', $code = 0, \Exception $previous = NULL) {
$this->library = $library;
$message = $message ?: "The version of library '{$this->library->getId()}' could not be detected.";
parent::__construct($message, $code, $previous);
}