summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/collection/AggregationInstance.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-10-03 23:18:47 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-10-03 23:18:47 +0200
commitb68ea0f2b12c4c5189c5fc7c182a1b242dc63579 (patch)
tree85b1cc4713ba978c044bfa0656f9115c9f9bf9e3 /src/main/java/com/c2kernel/collection/AggregationInstance.java
parent275d0bbf555c8917be82ce4cc21eb4cabb00f4c5 (diff)
Rolled back the renaming of existing exceptions.
Diffstat (limited to 'src/main/java/com/c2kernel/collection/AggregationInstance.java')
-rw-r--r--src/main/java/com/c2kernel/collection/AggregationInstance.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/c2kernel/collection/AggregationInstance.java b/src/main/java/com/c2kernel/collection/AggregationInstance.java
index 2de6b7f..d2dbf7f 100644
--- a/src/main/java/com/c2kernel/collection/AggregationInstance.java
+++ b/src/main/java/com/c2kernel/collection/AggregationInstance.java
@@ -26,7 +26,7 @@ package com.c2kernel.collection;
*/
import com.c2kernel.common.InvalidCollectionModification;
-import com.c2kernel.common.ObjectAlreadyExists;
+import com.c2kernel.common.ObjectAlreadyExistsException;
import com.c2kernel.graph.model.GraphPoint;
import com.c2kernel.lookup.ItemPath;
import com.c2kernel.utils.CastorHashMap;
@@ -47,20 +47,20 @@ public class AggregationInstance extends Aggregation
@Override
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps)
- throws InvalidCollectionModification, ObjectAlreadyExists
+ throws InvalidCollectionModification, ObjectAlreadyExistsException
{
if( itemPath != null && exists(itemPath))
- throw new ObjectAlreadyExists(itemPath+" already exists in this collection.");
+ throw new ObjectAlreadyExistsException(itemPath+" already exists in this collection.");
else
return super.addMember(itemPath, props, classProps);
}
@Override
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps, GraphPoint location, int w, int h)
- throws InvalidCollectionModification, ObjectAlreadyExists
+ throws InvalidCollectionModification, ObjectAlreadyExistsException
{
if( itemPath != null && exists(itemPath))
- throw new ObjectAlreadyExists(itemPath+" already exists in this collection.");
+ throw new ObjectAlreadyExistsException(itemPath+" already exists in this collection.");
else
return super.addMember(itemPath, props, classProps, location, w, h);
}