Exception modified
This commit is contained in:
parent
2bc4138463
commit
ae50530654
13
pom.xml
13
pom.xml
|
@ -116,16 +116,5 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<target>1.8</target>
|
||||
<source>1.8</source>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -175,7 +175,7 @@ public class FolderContainer extends ItemContainer<FolderItem>{
|
|||
* @throws {@InvalidItemException}
|
||||
* @throws {@UserNotAuthorizedException} if user is not authorized to write in this folder
|
||||
*/
|
||||
public FolderContainer newHiddenFolder(String name, String description) throws Exception {
|
||||
public FolderContainer newHiddenFolder(String name, String description) throws StorageHubException {
|
||||
String newFolderId = itemclient.createFolder(this.itemId, name, description, true);
|
||||
return new FolderContainer(itemclient, newFolderId);
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ public class FolderContainer extends ItemContainer<FolderItem>{
|
|||
* @throws {@InvalidItemException}
|
||||
* @throws {@UserNotAuthorizedException} if user is not authorized to write in this folder
|
||||
*/
|
||||
public GenericItemContainer newGcubeItem(GCubeItem item) throws Exception {
|
||||
public GenericItemContainer newGcubeItem(GCubeItem item) throws StorageHubException {
|
||||
String itemId = itemclient.createGcubeItem(this.itemId, item);
|
||||
return new GenericItemContainer(itemclient, itemId);
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ public class FolderContainer extends ItemContainer<FolderItem>{
|
|||
* @return a List of {@ACL}
|
||||
* @throws {@StorageHubException}
|
||||
*/
|
||||
public List<ACL> getAcls() throws Exception {
|
||||
public List<ACL> getAcls() throws StorageHubException {
|
||||
return itemclient.getACL(this.itemId);
|
||||
}
|
||||
|
||||
|
@ -285,7 +285,7 @@ public class FolderContainer extends ItemContainer<FolderItem>{
|
|||
* @throws {@InvalidItemException}
|
||||
* @throws {@UserNotAuthorizedException} if user is not authorized to share this folder
|
||||
*/
|
||||
public FolderContainer share(Set<String> users, AccessType accessType) throws Exception {
|
||||
public FolderContainer share(Set<String> users, AccessType accessType) throws StorageHubException {
|
||||
itemclient.shareFolder(this.itemId, users, accessType);
|
||||
this.invalidateItem();
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue