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.

Constructors

Link copied to clipboard
constructor(aggregateId: AggregateId, errorMsg: String = "Illegal access to a owner aggregate[")

Properties

Link copied to clipboard
open override val aggregateId: AggregateId
Link copied to clipboard
open override val bindingErrors: List<BindingError>

optional list of field-level validation errors

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
override val errorCode: String

the standardized error code for this exception

Link copied to clipboard
open override val errorMsg: String

the error message

Link copied to clipboard
Link copied to clipboard
open override val message: String
Link copied to clipboard

Determines the recoverable type of this Throwable.

Link copied to clipboard
Link copied to clipboard
open val succeeded: Boolean
Link copied to clipboard

Functions

Link copied to clipboard

Converts this Throwable to standardized ErrorInfo.

Link copied to clipboard
fun AggregateIdCapable.toGroupKey(parallelism: Int = DEFAULT_PARALLELISM): Int

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.