Class CrossTenantException

All Implemented Interfaces:
Serializable

public class CrossTenantException extends AdempiereException
Exception thrown when a cross-tenant access violation occurs during a read or write operation.
See Also:
  • Constructor Details

    • CrossTenantException

      public CrossTenantException(boolean isWriting, String tableName, int recordID)
      Constructs a new CrossTenantException indicating a cross-tenant access violation during either a read or write operation.
      Parameters:
      isWriting - true if the violation occurred during a write operation, false for 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

      public CrossTenantException(String tableName, int recordID)
      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

      public CrossTenantException(String tableName, String recordUU)
      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

      public CrossTenantException(Object fkValue, String fkColumn)
      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

      public String getFKColumn()
    • getFKValue

      public Object getFKValue()