Class UnsupportedVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cayenne.CayenneRuntimeException
org.apache.cayenne.project.xml.UnsupportedVersionException
- All Implemented Interfaces:
Serializable
Thrown by the XML handlers when the project version of a document is not the current one. The XML loaders catch
it and attempt an in-memory upgrade of the document.
- Since:
- 5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CayenneRuntimeException
getExceptionLabel, getMessage, getUnlabeledMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedVersionException
-
-
Method Details
-
getVersion
- Returns:
- the project version of the document, or
UpgradeHandler.UNKNOWN_VERSIONif it has none
-