|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.tinymarbles.exception.AttributeException
org.tinymarbles.exception.IllegalAttributeDefinitionException
public class IllegalAttributeDefinitionException
This Exception occurs when the client application tries to define an attribute using invalid parameters. For more details,
see the documentation of PAttribute
throwIfNotConcretePublic(String, Class),
throwIfNotPValue(String, Class),
throwIfNull(String, Class),
Serialized Form| Constructor Summary | |
|---|---|
|
IllegalAttributeDefinitionException(String message,
String name,
Class valueClass,
int modifiers,
boolean pValueSubclass)
Constructor without a cause |
protected |
IllegalAttributeDefinitionException(String message,
Throwable cause,
String name,
Class valueClass,
int modifiers,
boolean pValueSubclass)
Full Constructor for the exception |
| Method Summary | |
|---|---|
int |
getModifiers()
Gets the class modifiers from reflection. |
Class |
getValueClass()
Gets the value class of the attribute definition |
boolean |
isPersistentValue()
Asks if the value class is a subclass of PValue |
static void |
throwIfNotConcretePublic(String name,
Class valueClass)
Throws an exception if the value class is not concrete and public. |
static void |
throwIfNotPValue(String name,
Class valueClass)
|
static void |
throwIfNull(String name,
Class valueClass)
|
static void |
throwIfReserved(String name,
Class valueClass)
|
| Methods inherited from class org.tinymarbles.exception.AttributeException |
|---|
getAttributeName |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected IllegalAttributeDefinitionException(String message,
Throwable cause,
String name,
Class valueClass,
int modifiers,
boolean pValueSubclass)
message - the exception messagecause - an underlying cause, if it existsname - the name of the attributevalueClass - the value class of the attributemodifiers - class modifiers for the value classpValueSubclass - when false, means that the definition provided a value class that is not a subclass of
PValue
public IllegalAttributeDefinitionException(String message,
String name,
Class valueClass,
int modifiers,
boolean pValueSubclass)
message - the exception messagename - the name of the attributevalueClass - the value class of the attributemodifiers - class modifiers for the value classpValueSubclass - when false, means that the definition provided a value class that is not a subclass of
PValue| Method Detail |
|---|
public Class getValueClass()
public int getModifiers()
public boolean isPersistentValue()
PValue
public static void throwIfNotConcretePublic(String name,
Class valueClass)
throws IllegalAttributeDefinitionException
name - the declared name for the attributevalueClass - the class of the persistent value object
IllegalAttributeDefinitionException
public static void throwIfNotPValue(String name,
Class valueClass)
name - the declared name for the attributevalueClass - the class of the persistent value object
public static void throwIfNull(String name,
Class valueClass)
name - the declared name for the attributevalueClass - the class of the persistent value object
public static void throwIfReserved(String name,
Class valueClass)
name - the declared name for the attributevalueClass - the class of the persistent value object
|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||