Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.model
Class ModelException  view ModelException download ModelException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.aendvari.common.model.ModelException
All Implemented Interfaces:
java.io.Serializable

public class ModelException
extends java.lang.RuntimeException

Thrown when a particular Model operation could not be performed. The causing exception, if any, is available in the exception property. This exception does not have to be caught explictly. Generally, Model methods return specific error values during normal operation.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
protected  java.lang.Throwable rootCause
          The exception that caused this exception, may be null.
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ModelException(java.lang.String setMessage)
          Creates a ModelException instance.
ModelException(java.lang.Throwable setRootCause)
          Creates a ModelException instance with a causing exception.
 
Method Summary
 java.lang.Throwable getRootCause()
          Returns the exception that caused this exception, null if none.
 java.lang.String toString()
          Returns a string representation of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rootCause

protected java.lang.Throwable rootCause
The exception that caused this exception, may be null.

Constructor Detail

ModelException

public ModelException(java.lang.String setMessage)
Creates a ModelException instance.


ModelException

public ModelException(java.lang.Throwable setRootCause)
Creates a ModelException instance with a causing exception.

Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the exception that caused this exception, null if none.


toString

public java.lang.String toString()
Returns a string representation of the exception.