]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.hibernate/src/main/java/org/argeo/slc/core/UnsupportedException.java
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
+ ": "
27 + (obj
!= null ? obj
.getClass() : "[object is null]"));
31 * Constructor generating a message.
34 * the nature of the unsupported object
36 * the class itself (will be used in message)
38 public UnsupportedException(String nature
, Class
<?
> clss
) {
39 super("Unsupported " + nature
+ ": " + clss
);
43 * Constructor generating a message.
46 * the nature of the unsupported object
48 * the problematic value itself
50 public UnsupportedException(String nature
, String value
) {
51 super("Unsupported " + nature
+ ": " + value
);