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

Quick Search    Search Deep

org.objectstyle.cayenne
Class CayenneRuntimeException  view CayenneRuntimeException download CayenneRuntimeException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.objectstyle.cayenne.CayenneRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigException, ConfigurationException

public class CayenneRuntimeException
extends java.lang.RuntimeException

A CayenneRuntimeException is a generic *runtime* exception that may be thrown by Cayenne framework. All runtime exceptions in Cayenne would normally inherit from this class. The class is compatible with JDK 1.3 and at the same time implements enhancements introduced in 1.4, namely chained exceptions.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.Throwable cause
           
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CayenneRuntimeException()
          Creates new CayenneRuntimeException without detail message.
CayenneRuntimeException(java.lang.String msg)
          Constructs an CayenneRuntimeException with the specified detail message.
CayenneRuntimeException(java.lang.String msg, java.lang.Throwable th)
           
CayenneRuntimeException(java.lang.Throwable th)
          Constructs an CayenneRuntimeException that wraps exception thrown elsewhere.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this exception, or null if the cause is not known or non-existant.
 java.lang.String getMessage()
          Get the message associated with this Throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

cause

private java.lang.Throwable cause
Constructor Detail

CayenneRuntimeException

public CayenneRuntimeException()
Creates new CayenneRuntimeException without detail message.


CayenneRuntimeException

public CayenneRuntimeException(java.lang.String msg)
Constructs an CayenneRuntimeException with the specified detail message.


CayenneRuntimeException

public CayenneRuntimeException(java.lang.Throwable th)
Constructs an CayenneRuntimeException that wraps exception thrown elsewhere.


CayenneRuntimeException

public CayenneRuntimeException(java.lang.String msg,
                               java.lang.Throwable th)
Method Detail

getCause

public java.lang.Throwable getCause()
Description copied from class: java.lang.Throwable
Returns the cause of this exception, or null if the cause is not known or non-existant. This cause is initialized by the new constructors, or by calling initCause.


getMessage

public java.lang.String getMessage()
Description copied from class: java.lang.Throwable
Get the message associated with this Throwable.