diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-10-03 23:19:13 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-10-03 23:19:13 +0200 |
| commit | c48891910c6ca2ca7d234a3859899f7c60bbd909 (patch) | |
| tree | 85a118d28d25874a9901c2bdd478a2112c4ba767 | |
| parent | 82a61e26c2424f7e0a8fd509080ae7176c647a20 (diff) | |
Rolled back the renaming of existing exceptions.
| -rw-r--r-- | src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java b/src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java index e4fb80e..363a905 100644 --- a/src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java +++ b/src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java @@ -1,6 +1,6 @@ package com.c2kernel.dev;
-import com.c2kernel.common.InvalidData;
+import com.c2kernel.common.InvalidDataException;
import com.c2kernel.entity.agent.Job;
import com.c2kernel.entity.proxy.ItemProxy;
import com.c2kernel.lifecycle.ActivityDef;
@@ -19,7 +19,7 @@ public class DevObjectOutcomeInitiator implements OutcomeInitiator { }
@Override
- public String initOutcome(Job job) throws InvalidData {
+ public String initOutcome(Job job) throws InvalidDataException {
String type = job.getActPropString("SchemaType");
// create empty object for activities and state machine
@@ -53,7 +53,7 @@ public class DevObjectOutcomeInitiator implements OutcomeInitiator { schema = "Script";
}
else
- throw new InvalidData("Unknown dev object type: "+type);
+ throw new InvalidDataException("Unknown dev object type: "+type);
ItemProxy factory;
Viewpoint newInstance;
try {
@@ -62,7 +62,7 @@ public class DevObjectOutcomeInitiator implements OutcomeInitiator { return newInstance.getOutcome().getData();
} catch (Exception e) {
Logger.error(e);
- throw new InvalidData("Error loading new "+schema);
+ throw new InvalidDataException("Error loading new "+schema);
}
}
|
