org.apache.cayenne
Class CayenneRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.cayenne.CayenneRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigurationException, DeleteDenyException, DomainStoppedException, DoubleEnhanceException, ExpressionException, FaultFailureException, MissingSessionException, OptimisticLockException, ProjectException, PropertyException, UnresolvablePathException, ValidationException

public class CayenneRuntimeException
extends RuntimeException

A generic unchecked exception that may be thrown by Cayenne framework. All runtime exceptions in Cayenne inherit from this class.

See Also:
Serialized Form

Constructor Summary
CayenneRuntimeException()
          Creates new CayenneRuntimeException without detail message.
CayenneRuntimeException(String message)
          Constructs an CayenneRuntimeException with the specified detail message.
CayenneRuntimeException(String message, Throwable cause)
           
CayenneRuntimeException(Throwable cause)
          Constructs an CayenneRuntimeException that wraps exception thrown elsewhere.
 
Method Summary
 String getMessage()
          Returns message that includes Cayenne version label and the actual exception message.
 String getUnlabeledMessage()
          Returns exception message without Cayenne version label.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Constructor Detail

CayenneRuntimeException

public CayenneRuntimeException()
Creates new CayenneRuntimeException without detail message.


CayenneRuntimeException

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

Parameters:
message - the detail message.

CayenneRuntimeException

public CayenneRuntimeException(Throwable cause)
Constructs an CayenneRuntimeException that wraps exception thrown elsewhere.


CayenneRuntimeException

public CayenneRuntimeException(String message,
                               Throwable cause)
Method Detail

getUnlabeledMessage

public String getUnlabeledMessage()
Returns exception message without Cayenne version label.

Since:
1.1

getMessage

public String getMessage()
Returns message that includes Cayenne version label and the actual exception message.

Overrides:
getMessage in class Throwable


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.