Skip to content

Commit ff44877

Browse files
committed
resore exceptions in the interface
1 parent 50bf3e1 commit ff44877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/esri/core/geometry/ogc/OGCGeometry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ public static OGCGeometry fromEsriShape(ByteBuffer buffer) {
496496
}
497497

498498
public static OGCGeometry fromJson(String string)
499-
throws Exception {
499+
throws JsonParseException, IOException {
500500
JsonFactory factory = new JsonFactory();
501501
JsonParser jsonParserPt = factory.createJsonParser(string);
502502
jsonParserPt.nextToken();
@@ -506,7 +506,7 @@ public static OGCGeometry fromJson(String string)
506506
}
507507

508508
public static OGCGeometry fromGeoJson(String string)
509-
throws Exception {
509+
throws JsonParseException, IOException {
510510
OperatorImportFromGeoJson op = (OperatorImportFromGeoJson) OperatorFactoryLocal
511511
.getInstance().getOperator(Operator.Type.ImportFromGeoJson);
512512
MapOGCStructure mapOGCStructure = op.executeOGC(0, string, null);

0 commit comments

Comments
 (0)