]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc/src/main/java/org/argeo/slc/core/UnsupportedException.java
76f6565d2870306a96dcd9b5e317d6fc036a290a
1 package org
.argeo
.slc
.core
;
3 /** Exception for unsupported features or actions. */
4 public class UnsupportedException
extends SlcException
{
5 static final long serialVersionUID
= 1l;
7 /** Action not supported. */
8 public UnsupportedException() {
9 this("Action not supported");
12 /** Constructor with a message. */
13 public UnsupportedException(String message
) {
18 * Constructor generating a message.
21 * the nature of the unsupported object
23 * the object itself (its class name will be used in message)
25 public UnsupportedException(String nature
, Object obj
) {
26 super("Unsupported " + nature
+ ": " + obj
.getClass());
30 * Constructor generating a message.
33 * the nature of the unsupported object
35 * the problematic value itself
37 public UnsupportedException(String nature
, String value
) {
38 super("Unsupported " + nature
+ ": " + value
);