From c48891910c6ca2ca7d234a3859899f7c60bbd909 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 3 Oct 2014 23:19:13 +0200 Subject: Rolled back the renaming of existing exceptions. --- src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java') 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); } } -- cgit v1.2.3