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
AnOrgModelException
can be thrown for various reasons byModelExplorer
andModelChangeOperations
, 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,OrgModelException
s 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 newOrgModelException
withnull
.OrgModelException(String message)
Constructs a newOrgModelException
with the given detail message.OrgModelException(String message, Throwable cause)
Constructs a newOrgModelException
withnull
.OrgModelException(Throwable cause)
Constructs a newDataSourceException
withnull
as 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 newOrgModelException
withnull
. as detail message.
-
OrgModelException
public OrgModelException(String message)
Constructs a newOrgModelException
with the given detail message.- Parameters:
message
- the detail message
-
OrgModelException
public OrgModelException(String message, Throwable cause)
Constructs a newOrgModelException
withnull
. as detail message and the given cause.- Parameters:
message
- the detail messagecause
- the cause of this exception
-
OrgModelException
public OrgModelException(Throwable cause)
Constructs a newDataSourceException
withnull
as detail message and the given cause.- Parameters:
cause
- the cause of this exception
-
-