IllegalAccessOwnerAggregateException
class IllegalAccessOwnerAggregateException(val aggregateId: AggregateId, errorMsg: String = "Illegal access to a owner aggregate[") : WowException, AggregateIdCapable
Exception thrown when attempting to access an aggregate owned by another tenant or user.
This exception enforces multi-tenancy and ownership boundaries, preventing unauthorized access to aggregates that belong to different owners.
Parameters
aggregateId
The ID of the owner-restricted aggregate being accessed.
errorMsg
Custom error message describing the access violation.