use wcf\system\category\CategoryHandler;
use wcf\system\category\CategoryPermissionHandler;
use wcf\system\category\ICategoryType;
+use wcf\system\exception\InvalidObjectTypeException;
use wcf\system\exception\PermissionDeniedException;
-use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\WCF;
{
$this->objectType = CategoryHandler::getInstance()->getObjectTypeByName($this->objectTypeName);
if ($this->objectType === null) {
- throw new SystemException("Unknown category object type with name '" . $this->objectTypeName . "'");
+ throw new InvalidObjectTypeException($this->objectTypeName, 'com.woltlab.wcf.category');
}
// check permissions