Package com.appiancorp.suiteapi.content.exceptions
package com.appiancorp.suiteapi.content.exceptions
Contains exceptions that are thrown by ContentService
.
-
ClassDescriptionThis exception may be thrown by service methods if the content they are referencing is expired.This exception may be thrown by service methods that create content if the UUID specified is already in use for another piece of content.This exception may be thrown by service methods that delete or deactive content if the content has children and the flag was not set to automatically delete or deactive any children.This exception may be thrown by service methods that create or modify a content item if the parent is set to the item itself.This exception may be thrown by service methods that create or modify a content item if the name of the content is insufficiently unique for the type of uniqueness specified (
ContentConstants.UNIQUE_NONE
,ContentConstants.UNIQUE_FOR_PARENT
,ContentConstants.UNIQUE_FOR_TYPE
, orContentConstants.UNIQUE_FOR_ALL
).This exception may be thrown byContentService.approveVersion(Long, Integer)
This exception may be thrown by service methods detecting that a content item does not exist.This exception may be thrown byContentService.getPersonalId()
,ContentService.getPersonal()
,ContentService.getPersonalAndTeams(ContentFilter)
, {@link com.appiancorp.suiteapi.content.ContentService#getPersonalAndTeamsIds(ContentFilter), andif no personal knowledge center exists yet for that user, and the service failed to create it. If this is thrown, a new personal knowledge center may be created for that user, and then the call that threw this exception should be repeated.
This exception may be thrown byContentService.rejectVersion(Long, Integer)
This exception may be thrown by service methods if they detect that the type mask provided is invalid.This exception may be thrown byContentService.lock(Long)
andContentService.lock(Long[])
if the content is locked and the current user is not the owner.This exception may be thrown by service methods detecting that content is pending approval, which makes the attempted action illegal.