Class OrgModelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.aristaflow.adept2.core.orgmodelmanager.OrgModelException
- All Implemented Interfaces:
Serializable
An
OrgModelException can be thrown for various reasons by
ModelExplorer and ModelChangeOperations, ranging from trying
to use deactivated entity types to trying to access attributes that don't
exist.
The OrgModelException is a runtime exception because it's
generally possible to avoid all of them with careful programming. In
cases where the model is modified while others are (read) accessing it,
OrgModelExceptions might be thrown anyway. So it should be
considered to catch them in any case, just to be sure.
- Author:
- Patrick Schmidt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newOrgModelExceptionwithnull.OrgModelException(String message) Constructs a newOrgModelExceptionwith the given detail message.OrgModelException(String message, Throwable cause) Constructs a newOrgModelExceptionwithnull.OrgModelException(Throwable cause) Constructs a newDataSourceExceptionwithnullas detail message and the given cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OrgModelException
public OrgModelException()Constructs a newOrgModelExceptionwithnull. as detail message. -
OrgModelException
Constructs a newOrgModelExceptionwith the given detail message.- Parameters:
message- the detail message
-
OrgModelException
Constructs a newOrgModelExceptionwithnull. as detail message and the given cause.- Parameters:
message- the detail messagecause- the cause of this exception
-
OrgModelException
Constructs a newDataSourceExceptionwithnullas detail message and the given cause.- Parameters:
cause- the cause of this exception
-