Class OrgModelException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.aristaflow.adept2.core.orgmodelmanager.OrgModelException
-
- All Implemented Interfaces:
Serializable
public class OrgModelException extends RuntimeException
AnOrgModelExceptioncan be thrown for various reasons byModelExplorerandModelChangeOperations, ranging from trying to use deactivated entity types to trying to access attributes that don't exist.The
OrgModelExceptionis 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrgModelException()Constructs 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 Detail
-
OrgModelException
public OrgModelException()
Constructs a newOrgModelExceptionwithnull. as detail message.
-
OrgModelException
public OrgModelException(String message)
Constructs a newOrgModelExceptionwith the given detail message.- Parameters:
message- the detail message
-
OrgModelException
public OrgModelException(String message, Throwable cause)
Constructs a newOrgModelExceptionwithnull. as detail message and the given cause.- Parameters:
message- the detail messagecause- the cause of this exception
-
OrgModelException
public OrgModelException(Throwable cause)
Constructs a newDataSourceExceptionwithnullas detail message and the given cause.- Parameters:
cause- the cause of this exception
-
-