summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/persistency/outcome/Viewpoint.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/persistency/outcome/Viewpoint.java
parent275d0bbf555c8917be82ce4cc21eb4cabb00f4c5 (diff)
Rolled back the renaming of existing exceptions.
Diffstat (limited to 'src/main/java/com/c2kernel/persistency/outcome/Viewpoint.java')
-rw-r--r--src/main/java/com/c2kernel/persistency/outcome/Viewpoint.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/c2kernel/persistency/outcome/Viewpoint.java b/src/main/java/com/c2kernel/persistency/outcome/Viewpoint.java
index 151bf65..4ef0109 100644
--- a/src/main/java/com/c2kernel/persistency/outcome/Viewpoint.java
+++ b/src/main/java/com/c2kernel/persistency/outcome/Viewpoint.java
@@ -20,8 +20,8 @@
*/
package com.c2kernel.persistency.outcome;
-import com.c2kernel.common.InvalidData;
-import com.c2kernel.common.ObjectNotFound;
+import com.c2kernel.common.InvalidDataException;
+import com.c2kernel.common.ObjectNotFoundException;
import com.c2kernel.common.PersistencyException;
import com.c2kernel.entity.C2KLocalObject;
import com.c2kernel.events.Event;
@@ -70,8 +70,8 @@ public class Viewpoint implements C2KLocalObject {
this.eventId = eventId;
}
- public Outcome getOutcome() throws ObjectNotFound, PersistencyException {
- if (eventId == NONE) throw new ObjectNotFound("No last eventId defined");
+ public Outcome getOutcome() throws ObjectNotFoundException, PersistencyException {
+ if (eventId == NONE) throw new ObjectNotFoundException("No last eventId defined");
Outcome retVal = (Outcome)Gateway.getStorage().get(itemPath, ClusterStorage.OUTCOME+"/"+schemaName+"/"+schemaVersion+"/"+eventId, null);
return retVal;
}
@@ -194,10 +194,10 @@ public class Viewpoint implements C2KLocalObject {
* @return GDataRecord
*/
public Event getEvent()
- throws InvalidData, PersistencyException, ObjectNotFound
+ throws InvalidDataException, PersistencyException, ObjectNotFoundException
{
if (eventId == NONE)
- throw new InvalidData("No last eventId defined");
+ throw new InvalidDataException("No last eventId defined");
return (Event)Gateway.getStorage().get(itemPath, ClusterStorage.HISTORY+"/"+eventId, null);
}