Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.model » [javadoc | source]
org.apache.jdo.model
public class: ModelValidationException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         org.apache.jdo.model.ModelException
            org.apache.jdo.model.ModelValidationException

All Implemented Interfaces:
    Serializable

This exception indicates a problem during model validation.
Field Summary
public static final  int ERROR    Constant representing an error. 
public static final  int WARNING    Constant representing a warning. 
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public ModelValidationException() 
 public ModelValidationException(String message) 
    Constructs a ModelValidationException of type #ERROR with null as the offending object and with the specified detail message.
    Parameters:
    message - the detail message.
 public ModelValidationException(Object offendingObject) 
    Constructs a ModelValidationException of type #ERROR with the specified offending object and no detail message.
    Parameters:
    offendingObject - the offending object.
 public ModelValidationException(Object offendingObject,
    String message) 
    Constructs a ModelValidationException of type #ERROR with the specified offending object and detail message .
    Parameters:
    offendingObject - the offending object.
    message - the detail message.
 public ModelValidationException(int errorType,
    Object offendingObject,
    String message) 
    Constructs a ModelValidationException of the specified type with the specified detail message and offending object.
    Parameters:
    errorType - the type -- one of #ERROR or #WARNING .
    offendingObject - the offending object.
    message - the detail message.
Method from org.apache.jdo.model.ModelValidationException Summary:
getMessage,   getOffendingObject,   getType,   toString
Methods from org.apache.jdo.model.ModelException:
getCause,   getMessage,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.model.ModelValidationException Detail:
 public String getMessage() 
    Returns the error message string of this throwable object.
 public Object getOffendingObject() 
    Get the offending object -- the one being validated when the problem occurred.
 public int getType() 
 public 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).