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.
Properties
Functions
Link copied to clipboard
Converts this Throwable to standardized ErrorInfo.
Link copied to clipboard
Computes a grouping key for parallel processing based on the aggregate ID.
Link copied to clipboard
fun Throwable.toResult(waitCommandId: String, commandMessage: CommandMessage<*>, function: FunctionInfoData = COMMAND_GATEWAY_FUNCTION, id: String = generateGlobalId(), stage: CommandStage = CommandStage.SENT, result: Map<String, Any> = emptyMap(), signalTime: Long = System.currentTimeMillis()): CommandResult
Converts a Throwable to a CommandResult representing a command failure.