Package org.apache.cayenne
Class CayenneRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cayenne.CayenneRuntimeException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ConfigurationException,- DeleteDenyException,- DomainStoppedException,- ExpressionException,- FaultFailureException,- OptimisticLockException,- 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 SummaryConstructors Constructor Description CayenneRuntimeException()Creates new CayenneRuntimeException without detail message.CayenneRuntimeException(String messageFormat, Object... messageArgs)Constructs an exception with the specified message and an optional list of message formatting arguments.CayenneRuntimeException(String messageFormat, Throwable cause, Object... messageArgs)Constructs an exception with the specified message and exception cause and an optional list of message formatting arguments.CayenneRuntimeException(Throwable cause)Constructs anCayenneRuntimeExceptionthat wrapsexceptionthrown elsewhere.
- 
Method SummaryModifier and Type Method Description static StringgetExceptionLabel()StringgetMessage()Returns message that includes Cayenne version label and the actual exception message.StringgetUnlabeledMessage()Returns exception message without Cayenne version label.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
CayenneRuntimeExceptionpublic CayenneRuntimeException()Creates new CayenneRuntimeException without detail message.
- 
CayenneRuntimeExceptionConstructs an exception with the specified message and an optional list of message formatting arguments. Message formatting rules follow "String.format(..)" conventions.
- 
CayenneRuntimeExceptionConstructs anCayenneRuntimeExceptionthat wrapsexceptionthrown elsewhere.
- 
CayenneRuntimeExceptionConstructs an exception with the specified message and exception cause and an optional list of message formatting arguments. Message formatting rules follow "String.format(..)" conventions.
 
- 
- 
Method Details- 
getExceptionLabel- Since:
- 4.1 moved from deprecated CayenneException
 
- 
getUnlabeledMessageReturns exception message without Cayenne version label.- Since:
- 1.1
 
- 
getMessageReturns message that includes Cayenne version label and the actual exception message.- Overrides:
- getMessagein class- Throwable
 
 
-