|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.jdo.model.ModelException
org.apache.jdo.model.ModelValidationException
This exception indicates a problem during model validation.
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 with null as the offending object and
no detail message. |
|
ModelValidationException(int errorType,
java.lang.Object offendingObject,
java.lang.String message)
Constructs a ModelValidationException of the specified
type with the specified detail message and offending object. |
|
ModelValidationException(java.lang.Object offendingObject)
Constructs a ModelValidationException of type
ERROR with the specified offending object and no
detail message. |
|
ModelValidationException(java.lang.Object offendingObject,
java.lang.String message)
Constructs a ModelValidationException of type
ERROR with the specified offending object and detail
message . |
|
ModelValidationException(java.lang.String message)
Constructs a ModelValidationException of type
ERROR with null as the offending object and
with the specified detail message. |
Method Summary | |
java.lang.String |
getMessage()
Returns the error message string of this throwable object. |
java.lang.Object |
getOffendingObject()
Get the offending object -- the one being validated when the problem occurred. |
int |
getType()
Get the type -- one of ERROR or WARNING . |
java.lang.String |
toString()
The String representation includes the name of the class,
the descriptive comment (if any),
and the String representation of the cause (if any). |
Methods inherited from class org.apache.jdo.model.ModelException |
getCause, initCause, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace |
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
with null
as the offending object and
no detail message.
public ModelValidationException(java.lang.String message)
ModelValidationException
of type
ERROR
with null
as the offending object and
with the specified detail message.
message
- the detail message.public ModelValidationException(java.lang.Object offendingObject)
ModelValidationException
of type
ERROR
with the specified offending object and no
detail message.
offendingObject
- the offending object.public ModelValidationException(java.lang.Object offendingObject, java.lang.String message)
ModelValidationException
of type
ERROR
with the specified offending object and detail
message .
offendingObject
- the offending object.message
- the detail message.public ModelValidationException(int errorType, java.lang.Object offendingObject, java.lang.String message)
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.message
- the detail message.Method Detail |
public java.lang.Object getOffendingObject()
public int getType()
ERROR
or WARNING
.
public java.lang.String getMessage()
getMessage
in class ModelException
ModelValidationException
, prepended with the warning string
if the type is WARNING
public java.lang.String toString()
String
representation includes the name of the class,
the descriptive comment (if any),
and the String
representation of the cause (if any).
toString
in class ModelException
String
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |