diff --git a/main/src/com/google/refine/browsing/Engine.java b/main/src/com/google/refine/browsing/Engine.java index 0b19b1f22..f8cffce53 100644 --- a/main/src/com/google/refine/browsing/Engine.java +++ b/main/src/com/google/refine/browsing/Engine.java @@ -172,7 +172,7 @@ public class Engine implements Jsonizable { throw new InternalError("This method should not be called when the engine is not in record mode."); } - public void initializeFromJSON(JSONObject o) throws Exception { + public void initializeFromJSON(JSONObject o) throws JSONException { if (o == null) { return; } diff --git a/main/src/com/google/refine/browsing/facets/Facet.java b/main/src/com/google/refine/browsing/facets/Facet.java index 060f43a1f..eb48416d9 100644 --- a/main/src/com/google/refine/browsing/facets/Facet.java +++ b/main/src/com/google/refine/browsing/facets/Facet.java @@ -33,6 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. package com.google.refine.browsing.facets; +import org.json.JSONException; import org.json.JSONObject; import com.google.refine.Jsonizable; @@ -54,5 +55,5 @@ public interface Facet extends Jsonizable { public void computeChoices(Project project, FilteredRecords filteredRecords); - public void initializeFromJSON(Project project, JSONObject o) throws Exception; + public void initializeFromJSON(Project project, JSONObject o) throws JSONException; } diff --git a/main/src/com/google/refine/browsing/facets/ListFacet.java b/main/src/com/google/refine/browsing/facets/ListFacet.java index 2c0941f02..01500ab2e 100644 --- a/main/src/com/google/refine/browsing/facets/ListFacet.java +++ b/main/src/com/google/refine/browsing/facets/ListFacet.java @@ -152,7 +152,7 @@ public class ListFacet implements Facet { } @Override - public void initializeFromJSON(Project project, JSONObject o) throws Exception { + public void initializeFromJSON(Project project, JSONObject o) throws JSONException { _name = o.getString("name"); _expression = o.getString("expression"); _columnName = o.getString("columnName"); diff --git a/main/src/com/google/refine/browsing/facets/RangeFacet.java b/main/src/com/google/refine/browsing/facets/RangeFacet.java index bd6906def..10669b35e 100644 --- a/main/src/com/google/refine/browsing/facets/RangeFacet.java +++ b/main/src/com/google/refine/browsing/facets/RangeFacet.java @@ -159,7 +159,7 @@ public class RangeFacet implements Facet { } @Override - public void initializeFromJSON(Project project, JSONObject o) throws Exception { + public void initializeFromJSON(Project project, JSONObject o) throws JSONException { _name = o.getString("name"); _expression = o.getString("expression"); _columnName = o.getString("columnName"); diff --git a/main/src/com/google/refine/browsing/facets/ScatterplotFacet.java b/main/src/com/google/refine/browsing/facets/ScatterplotFacet.java index 178dbbe0c..2a58913b3 100644 --- a/main/src/com/google/refine/browsing/facets/ScatterplotFacet.java +++ b/main/src/com/google/refine/browsing/facets/ScatterplotFacet.java @@ -206,7 +206,7 @@ public class ScatterplotFacet implements Facet { } @Override - public void initializeFromJSON(Project project, JSONObject o) throws Exception { + public void initializeFromJSON(Project project, JSONObject o) throws JSONException { name = o.getString(NAME); l = size = (o.has(SIZE)) ? o.getInt(SIZE) : 100; dot = (o.has(DOT)) ? o.getInt(DOT) : 0.5d; diff --git a/main/src/com/google/refine/browsing/facets/TextSearchFacet.java b/main/src/com/google/refine/browsing/facets/TextSearchFacet.java index 48c74201e..a7ac90622 100644 --- a/main/src/com/google/refine/browsing/facets/TextSearchFacet.java +++ b/main/src/com/google/refine/browsing/facets/TextSearchFacet.java @@ -84,7 +84,7 @@ public class TextSearchFacet implements Facet { } @Override - public void initializeFromJSON(Project project, JSONObject o) throws Exception { + public void initializeFromJSON(Project project, JSONObject o) throws JSONException { _name = o.getString("name"); _columnName = o.getString("columnName"); diff --git a/main/src/com/google/refine/browsing/facets/TimeRangeFacet.java b/main/src/com/google/refine/browsing/facets/TimeRangeFacet.java index 9d15d3148..f045775dc 100644 --- a/main/src/com/google/refine/browsing/facets/TimeRangeFacet.java +++ b/main/src/com/google/refine/browsing/facets/TimeRangeFacet.java @@ -111,7 +111,7 @@ public class TimeRangeFacet extends RangeFacet { } @Override - public void initializeFromJSON(Project project, JSONObject o) throws Exception { + public void initializeFromJSON(Project project, JSONObject o) throws JSONException { _name = o.getString("name"); _expression = o.getString("expression"); _columnName = o.getString("columnName");