]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/core/UnsupportedException.java
Replace test result id by UUID
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / UnsupportedException.java
index 5c786566fb1c358afc1d6664aa7e822e140dd5aa..4b46b35de3c47ed8eecb6e9b1541cb7bb9468097 100644 (file)
@@ -27,6 +27,18 @@ public class UnsupportedException extends SlcException {
                                + (obj != null ? obj.getClass() : "[object is null]"));\r
        }\r
 \r
+       /**\r
+        * Constructor generating a message.\r
+        * \r
+        * @param nature\r
+        *            the nature of the unsupported object\r
+        * @param clss\r
+        *            the class itself (will be used in message)\r
+        */\r
+       public UnsupportedException(String nature, Class<?> clss) {\r
+               super("Unsupported " + nature + ": " + clss);\r
+       }\r
+\r
        /**\r
         * Constructor generating a message.\r
         * \r