X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=inline;f=org.argeo.server.jcr%2Fsrc%2Forg%2Fargeo%2Fjcr%2FPropertyDiff.java;h=a0ff4712a69d4e496c3fe6f95c03f6123ec458e0;hb=8260f4470f514ea347ca53f5b4dfc632c4a4de66;hp=bdd316f31846f10e95a468992af24849af2260f4;hpb=cf3a914f6fbf31b43be5cb86e54d05e8543be6a9;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.server.jcr/src/org/argeo/jcr/PropertyDiff.java b/org.argeo.server.jcr/src/org/argeo/jcr/PropertyDiff.java index bdd316f31..a0ff4712a 100644 --- a/org.argeo.server.jcr/src/org/argeo/jcr/PropertyDiff.java +++ b/org.argeo.server.jcr/src/org/argeo/jcr/PropertyDiff.java @@ -17,8 +17,6 @@ package org.argeo.jcr; import javax.jcr.Value; -import org.argeo.ArgeoException; - /** The result of the comparison of two JCR properties. */ public class PropertyDiff { public final static Integer MODIFIED = 0; @@ -36,22 +34,22 @@ public class PropertyDiff { if (type == MODIFIED) { if (referenceValue == null || newValue == null) - throw new ArgeoException( + throw new ArgeoJcrException( "Reference and new values must be specified."); } else if (type == ADDED) { if (referenceValue != null || newValue == null) - throw new ArgeoException( + throw new ArgeoJcrException( "New value and only it must be specified."); } else if (type == REMOVED) { if (referenceValue == null || newValue != null) - throw new ArgeoException( + throw new ArgeoJcrException( "Reference value and only it must be specified."); } else { - throw new ArgeoException("Unkown diff type " + type); + throw new ArgeoJcrException("Unkown diff type " + type); } if (relPath == null) - throw new ArgeoException("Relative path must be specified"); + throw new ArgeoJcrException("Relative path must be specified"); this.type = type; this.relPath = relPath;