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

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ModelVetoException, ModelValidationException

This exception indicates a Model problem. It is the root for all checked model exceptions.
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public ModelException() 
 public ModelException(String message) 
    Constructs a ModelException with the specified detail message.
    Parameters:
    message - the detail message.
 public ModelException(String message,
    Throwable cause) 
    Constructs a new ModelException with the specified detail message and cause.
    Parameters:
    message - the detail message.
    cause - the cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method from org.apache.jdo.model.ModelException Summary:
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.ModelException Detail:
 public synchronized Throwable getCause() 
    Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)
 public String getMessage() 
    Returns the error message string of this throwable object.
 public Throwable initCause(Throwable cause) 
    Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.)
 public  void printStackTrace() 
    Prints this ModelException and its backtrace to the standard error output. Print cause Throwable's stack trace as well.
 public synchronized  void printStackTrace(PrintStream s) 
    Prints this ModelException and its backtrace to the specified print stream. Print cause Throwable's stack trace as well.
 public synchronized  void printStackTrace(PrintWriter s) 
    Prints this ModelException and its backtrace to the specified print writer. Print cause Throwable' stack trace as well.
 public synchronized 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).