missingTenantId

public static InvalidCommandException missingTenantId(Command command)

Creates an exception for a command with missing tenant_id attribute in the CommandContext which is required in a multitenant application.