Package org.apache.cayenne
Class CayenneException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.cayenne.CayenneException
- All Implemented Interfaces:
- Serializable
@Deprecated public class CayenneException extends Exception
Deprecated.
A generic checked exception that may be thrown by Cayenne framework. All checked
 exceptions in Cayenne inherit from this class.
- See Also:
- Serialized Form
- 
Constructor SummaryConstructors Constructor Description CayenneException()Deprecated.Creates newCayenneExceptionwithout detail message.CayenneException(String messageFormat, Object... messageArgs)Deprecated.Constructs anCayenneExceptionwith the specified detail message.CayenneException(String messageFormat, Throwable cause, Object... messageArgs)Deprecated.CayenneException(Throwable cause)Deprecated.Constructs anCayenneExceptionthat wraps acausethrown elsewhere.
- 
Method SummaryModifier and Type Method Description static StringgetExceptionLabel()Deprecated.since 4.1 useCayenneRuntimeException.getExceptionLabel()StringgetMessage()Deprecated.StringgetUnlabeledMessage()Deprecated.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- 
CayenneExceptionpublic CayenneException()Deprecated.Creates newCayenneExceptionwithout detail message.
- 
CayenneExceptionDeprecated.Constructs anCayenneExceptionwith the specified detail message.- Parameters:
- messageFormat- the detail message format string.
 
- 
CayenneExceptionDeprecated.Constructs anCayenneExceptionthat wraps acausethrown elsewhere.
- 
CayenneExceptionDeprecated.
 
- 
- 
Method Details- 
getExceptionLabelDeprecated.since 4.1 useCayenneRuntimeException.getExceptionLabel()
- 
getUnlabeledMessageDeprecated.Returns exception message without Cayenne version label.- Since:
- 1.1
 
- 
getMessageDeprecated.- Overrides:
- getMessagein class- Throwable
 
 
- 
CayenneRuntimeExceptioninstead