This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch sonar
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git


The following commit(s) were added to refs/heads/sonar by this push:
     new ac4bde6f throw a dedicated exception
ac4bde6f is described below

commit ac4bde6f0821918ad91b909ce7c4cd2fd2146030
Author: Bertil Chapuis <[email protected]>
AuthorDate: Wed Jun 12 23:38:33 2024 +0200

    throw a dedicated exception
---
 .../main/java/org/apache/baremaps/tilestore/pmtiles/PMTilesStore.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/baremaps-core/src/main/java/org/apache/baremaps/tilestore/pmtiles/PMTilesStore.java
 
b/baremaps-core/src/main/java/org/apache/baremaps/tilestore/pmtiles/PMTilesStore.java
index 1ef2b472..b17b12ba 100644
--- 
a/baremaps-core/src/main/java/org/apache/baremaps/tilestore/pmtiles/PMTilesStore.java
+++ 
b/baremaps-core/src/main/java/org/apache/baremaps/tilestore/pmtiles/PMTilesStore.java
@@ -33,7 +33,7 @@ public class PMTilesStore implements TileStore {
 
   private final PMTilesWriter writer;
 
-  public PMTilesStore(Path path, Tileset tileset) {
+  public PMTilesStore(Path path, Tileset tileset) throws TileStoreException {
     try {
       var metadata = new HashMap<String, Object>();
       metadata.put("name", tileset.getName());
@@ -62,7 +62,7 @@ public class PMTilesStore implements TileStore {
       writer.setMaxZoom(tileset.getMaxzoom());
 
     } catch (IOException e) {
-      throw new RuntimeException(e);
+      throw new TileStoreException(e);
     }
   }
 

Reply via email to