Merge tag 'v2.3.15' into testing
[gpl/argeo-slc.git] / org.argeo.slc.api / src / org / argeo / slc / UnsupportedException.java
diff --git a/org.argeo.slc.api/src/org/argeo/slc/UnsupportedException.java b/org.argeo.slc.api/src/org/argeo/slc/UnsupportedException.java
deleted file mode 100644 (file)
index aa050e3..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.argeo.slc;
-
-/** 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 != null ? obj.getClass() : "[object is null]"));
-       }
-
-       /**
-        * Constructor generating a message.
-        * 
-        * @param nature
-        *            the nature of the unsupported object
-        * @param clss
-        *            the class itself (will be used in message)
-        */
-       public UnsupportedException(String nature, Class<?> clss) {
-               super("Unsupported " + nature + ": " + clss);
-       }
-
-       /**
-        * 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);
-       }
-
-}