X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Futil%2Fsecurity%2FChecksumFactory.java;h=b57db2c986ff1e80d6fab154d69a2a4a94b01cbc;hb=3a0d866fbeea3f78c293212f4b4fbaeba7dfe2bd;hp=76592c8539e332f17780d2cf7792f6bfb4825f0f;hpb=e28bbb211a2ee13f0f4f3089d35f1e25103ffacb;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.util/src/org/argeo/util/security/ChecksumFactory.java b/org.argeo.util/src/org/argeo/util/security/ChecksumFactory.java index 76592c853..b57db2c98 100644 --- a/org.argeo.util/src/org/argeo/util/security/ChecksumFactory.java +++ b/org.argeo.util/src/org/argeo/util/security/ChecksumFactory.java @@ -15,7 +15,7 @@ import java.nio.file.attribute.BasicFileAttributes; import java.security.MessageDigest; import java.util.zip.Checksum; -import org.argeo.ArgeoException; +import org.argeo.util.internal.UtilsException; /** Allows to fine tune how files are read. */ public class ChecksumFactory { @@ -91,7 +91,7 @@ public class ChecksumFactory { } } } catch (Exception e) { - throw new ArgeoException("Cannot digest " + path, e); + throw new UtilsException("Cannot digest " + path, e); } } @@ -124,7 +124,7 @@ public class ChecksumFactory { } return crc.getValue(); } catch (Exception e) { - throw new ArgeoException("Cannot checksum " + path, e); + throw new UtilsException("Cannot checksum " + path, e); } finally { long duration = System.currentTimeMillis() - begin; System.out.println(duration / 1000 + "s");