Class TenantRequiredException
Thrown when a tenant is required (RequireTenant is enabled) but no tenant could be resolved for a message or request and no default tenant is configured.
public sealed class TenantRequiredException : InvalidOperationException, ISerializable
- Inheritance
-
TenantRequiredException
- Implements
- Inherited Members
- Extension Methods
Remarks
This is the fail-fast signal for ambient tenancy: rather than proceeding with an unscoped operation on a
tenant-required path, resolution fails loudly (mirroring the storage-side
Excalibur.Data.Sharding.TenantShardNotFoundException).
Constructors
TenantRequiredException()
Initializes a new instance of the TenantRequiredException class.
public TenantRequiredException()
TenantRequiredException(string)
Initializes a new instance of the TenantRequiredException class.
public TenantRequiredException(string message)
Parameters
messagestringThe message that describes the error.
TenantRequiredException(string, Exception)
Initializes a new instance of the TenantRequiredException class.
public TenantRequiredException(string message, Exception innerException)