namespace wcf\data;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\exception\ImplementationException;
use wcf\system\exception\SystemException;
use wcf\system\SingletonFactory;
if ($this->processor === null) {
if ($this->className) {
if (!\class_exists($this->className)) {
- throw new SystemException("Unable to find class '" . $this->className . "'");
+ throw new ClassNotFoundException($this->className);
}
if (!\is_subclass_of($this->className, static::$processorInterface)) {
throw new ImplementationException($this->className, static::$processorInterface);
use wcf\data\ProcessibleDatabaseObject;
use wcf\data\TDatabaseObjectOptions;
use wcf\data\TDatabaseObjectPermissions;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\exception\ImplementationException;
use wcf\system\exception\SystemException;
use wcf\system\SingletonFactory;
if ($this->processor === null) {
if ($this->className) {
if (!\class_exists($this->className)) {
- throw new SystemException("Unable to find class '" . $this->className . "'");
+ throw new ClassNotFoundException($this->className);
}
$definitionInterface = ObjectTypeCache::getInstance()
use wcf\data\DatabaseObjectDecorator;
use wcf\data\user\User;
use wcf\system\cache\builder\UserOptionCacheBuilder;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\exception\ImplementationException;
use wcf\system\exception\SystemException;
use wcf\system\option\user\IUserOptionOutput;
if (!isset(self::$outputObjects[$this->outputClass])) {
// create instance
if (!\class_exists($this->outputClass)) {
- throw new SystemException("unable to find class '" . $this->outputClass . "'");
+ throw new ClassNotFoundException($this->outputClass);
}
// validate interface
use wcf\data\DatabaseObject;
use wcf\data\TDatabaseObjectOptions;
use wcf\data\TDatabaseObjectPermissions;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\exception\ImplementationException;
use wcf\system\exception\ParentClassException;
use wcf\system\exception\SystemException;
{
if ($this->contentManager === null) {
if (!\class_exists($this->className)) {
- throw new SystemException("Unable to find class '" . $this->className . "'");
+ throw new ClassNotFoundException($this->className);
}
if (!\is_subclass_of($this->className, SingletonFactory::class)) {
use wcf\data\user\group\option\UserGroupOption;
use wcf\data\user\group\UserGroup;
use wcf\system\database\util\PreparedStatementConditionBuilder;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\exception\ImplementationException;
use wcf\system\exception\SystemException;
use wcf\system\option\user\group\IUserGroupOptionType;
// validate class
if (!\class_exists($className)) {
- throw new SystemException("unable to find class '" . $className . "'");
+ throw new ClassNotFoundException($className);
}
if (!\is_subclass_of($className, IUserGroupOptionType::class)) {
throw new ImplementationException($className, IUserGroupOptionType::class);
use wcf\data\cronjob\log\CronjobLogEditor;
use wcf\data\user\User;
use wcf\system\cache\builder\CronjobCacheBuilder;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\exception\ImplementationException;
use wcf\system\exception\SystemException;
use wcf\system\session\SessionHandler;
{
$className = $cronjobEditor->className;
if (!\class_exists($className)) {
- throw new SystemException("unable to find class '" . $className . "'");
+ throw new ClassNotFoundException($className);
}
// verify class signature
use wcf\system\cache\builder\EventListenerCacheBuilder;
use wcf\system\event\IEventListener as ILegacyEventListener;
use wcf\system\event\listener\IParameterizedEventListener;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\SingletonFactory;
/**
}
if (!\class_exists($className)) {
- throw new \LogicException("Unable to find class '" . $className . "'.");
+ throw new ClassNotFoundException($className);
}
$object = new $className();
use wcf\system\devtools\DevtoolsSetup;
use wcf\system\Environment;
use wcf\system\event\EventHandler;
+use wcf\system\exception\ClassNotFoundException;
use wcf\system\exception\ImplementationException;
use wcf\system\exception\SystemException;
use wcf\system\form\container\GroupFormElementContainer;
// valdidate class definition
$className = $row['className'];
if (!\class_exists($className)) {
- throw new SystemException("unable to find class '" . $className . "'");
+ throw new ClassNotFoundException($className);
}
// set default value