]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc/src/main/java/org/argeo/slc/core/UnsupportedException.java
Change default separator
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / UnsupportedException.java
index 2399a298932dc24bfa493171adfd8c3279f4e26b..76f6565d2870306a96dcd9b5e317d6fc036a290a 100644 (file)
@@ -1,20 +1,39 @@
 package org.argeo.slc.core;\r
 \r
+/** Exception for unsupported features or actions. */\r
 public class UnsupportedException extends SlcException {\r
        static final long serialVersionUID = 1l;\r
 \r
+       /** Action not supported. */\r
        public UnsupportedException() {\r
                this("Action not supported");\r
        }\r
 \r
+       /** Constructor with a message. */\r
        public UnsupportedException(String message) {\r
                super(message);\r
        }\r
 \r
+       /**\r
+        * Constructor generating a message.\r
+        * \r
+        * @param nature\r
+        *            the nature of the unsupported object\r
+        * @param obj\r
+        *            the object itself (its class name will be used in message)\r
+        */\r
        public UnsupportedException(String nature, Object obj) {\r
                super("Unsupported " + nature + ": " + obj.getClass());\r
        }\r
 \r
+       /**\r
+        * Constructor generating a message.\r
+        * \r
+        * @param nature\r
+        *            the nature of the unsupported object\r
+        * @param value\r
+        *            the problematic value itself\r
+        */\r
        public UnsupportedException(String nature, String value) {\r
                super("Unsupported " + nature + ": " + value);\r
        }\r