|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sun.jdo.api.persistence.model.ModelException
com.sun.jdo.api.persistence.model.util.ModelValidationException
public class ModelValidationException
| Field Summary | |
|---|---|
static int |
ERROR
Constant representing an error. |
static int |
WARNING
Constant representing a warning. |
| Constructor Summary | |
|---|---|
ModelValidationException()
Creates new ModelValidationException of type ERROR
without a detail message and with null as the
offending object. |
|
ModelValidationException(int errorType,
Object offendingObject,
String msg)
Constructs a ModelValidationException of the specified
type with the specified detail message and offending object. |
|
ModelValidationException(Object offendingObject)
Constructs a ModelValidationException of type
ERROR with the specified offending object and no
detail message. |
|
ModelValidationException(Object offendingObject,
String msg)
Constructs a ModelValidationException of type
ERROR with the specified detail message and offending
object. |
|
ModelValidationException(String msg)
Constructs a ModelValidationException of type
ERROR with the specified detail message and
null as the offending object. |
|
| Method Summary | |
|---|---|
String |
getMessage()
Returns the error message string of this throwable object. |
protected static ResourceBundle |
getMessages()
|
Object |
getOffendingObject()
Get the offending object -- the one being validated when the problem occurred. |
int |
getType()
Get the type -- one of ERROR or WARNING. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ERROR
public static final int WARNING
| Constructor Detail |
|---|
public ModelValidationException()
ModelValidationException of type ERROR
without a detail message and with null as the
offending object.
public ModelValidationException(String msg)
ModelValidationException of type
ERROR with the specified detail message and
null as the offending object.
msg - the detail message.public ModelValidationException(Object offendingObject)
ModelValidationException of type
ERROR with the specified offending object and no
detail message.
offendingObject - the offending object.
public ModelValidationException(Object offendingObject,
String msg)
ModelValidationException of type
ERROR with the specified detail message and offending
object.
offendingObject - the offending object.msg - the detail message.
public ModelValidationException(int errorType,
Object offendingObject,
String msg)
ModelValidationException of the specified
type with the specified detail message and offending object.
errorType - the type -- one of ERROR or WARNING.offendingObject - the offending object.msg - the detail message.| Method Detail |
|---|
protected static final ResourceBundle getMessages()
public Object getOffendingObject()
public int getType()
ERROR or WARNING.
public String getMessage()
getMessage in class ThrowableModelValidationException, prepended with the warning string
if the type is WARNING
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||