X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2FUnsupportedException.java;h=76f6565d2870306a96dcd9b5e317d6fc036a290a;hb=c3f583ec074e7f96102a732c3cab3b375c5aa7f9;hp=2399a298932dc24bfa493171adfd8c3279f4e26b;hpb=6eb8dbec55c0cb31407907860ba6de627243b8af;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc/src/main/java/org/argeo/slc/core/UnsupportedException.java b/org.argeo.slc/src/main/java/org/argeo/slc/core/UnsupportedException.java index 2399a2989..76f6565d2 100644 --- a/org.argeo.slc/src/main/java/org/argeo/slc/core/UnsupportedException.java +++ b/org.argeo.slc/src/main/java/org/argeo/slc/core/UnsupportedException.java @@ -1,20 +1,39 @@ package org.argeo.slc.core; +/** Exception for unsupported features or actions. */ public class UnsupportedException extends SlcException { static final long serialVersionUID = 1l; + /** Action not supported. */ public UnsupportedException() { this("Action not supported"); } + /** Constructor with a message. */ public UnsupportedException(String message) { super(message); } + /** + * Constructor generating a message. + * + * @param nature + * the nature of the unsupported object + * @param obj + * the object itself (its class name will be used in message) + */ public UnsupportedException(String nature, Object obj) { super("Unsupported " + nature + ": " + obj.getClass()); } + /** + * Constructor generating a message. + * + * @param nature + * the nature of the unsupported object + * @param value + * the problematic value itself + */ public UnsupportedException(String nature, String value) { super("Unsupported " + nature + ": " + value); }