Package org.adempiere.exceptions
Class CrossTenantException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.adempiere.exceptions.AdempiereException
org.adempiere.exceptions.CrossTenantException
- All Implemented Interfaces:
Serializable
Exception thrown when a cross-tenant access violation occurs during a read or write operation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrossTenantException(boolean isWriting, String tableName, int recordID) Constructs a new CrossTenantException indicating a cross-tenant access violation during either a read or write operation.CrossTenantException(Object fkValue, String fkColumn) Exception thrown when a foreign key references an entity from a different tenant.CrossTenantException(String tableName, int recordID) Constructs a new CrossTenantException indicating that a record ID from another tenant cannot be used.CrossTenantException(String tableName, String recordUU) Constructs a new CrossTenantException indicating that a UUID from another tenant cannot be used. -
Method Summary
Methods inherited from class org.adempiere.exceptions.AdempiereException
getCtx, getLocalizedMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CrossTenantException
Constructs a new CrossTenantException indicating a cross-tenant access violation during either a read or write operation.- Parameters:
isWriting-trueif the violation occurred during a write operation,falsefor a read operation.tableName- The name of the database table involved in the violation.recordID- The record ID that was attempted to be accessed.
-
CrossTenantException
Constructs a new CrossTenantException indicating that a record ID from another tenant cannot be used.- Parameters:
tableName- The name of the database table involved in the violation.recordID- The record ID that was attempted to be accessed.
-
CrossTenantException
Constructs a new CrossTenantException indicating that a UUID from another tenant cannot be used.- Parameters:
tableName- The name of the database table involved in the violation.recordUU- The UUID of the record that was attempted to be accessed.
-
CrossTenantException
Exception thrown when a foreign key references an entity from a different tenant.- Parameters:
fkValue- The foreign key value that caused the exception.fkColumn- The column name where the cross-tenant reference was detected.
-
-
Method Details
-
getFKColumn
-
getFKValue
-