pub enum ResourceGroupError {
Show 13 variants
NotFound {
code: String,
},
TypeAlreadyExists {
code: String,
},
Validation {
message: String,
},
AllowedParentTypesViolation {
message: String,
},
ConflictActiveReferences {
message: String,
},
Conflict {
message: String,
},
InvalidParentType {
message: String,
},
CycleDetected {
message: String,
},
LimitViolation {
message: String,
},
TenantIncompatibility {
message: String,
},
ServiceUnavailable {
message: String,
},
AccessDenied,
Internal,
}Expand description
Errors that can be returned by the ResourceGroupClient.
Variants§
NotFound
Resource with the specified identifier was not found.
TypeAlreadyExists
A resource with the specified code already exists.
Validation
Validation error with the provided data.
AllowedParentTypesViolation
Removing allowed parents or disabling root placement would break existing group hierarchy relationships.
ConflictActiveReferences
Cannot delete a type because groups of this type still exist.
Conflict
A generic conflict (e.g. a concurrency or state conflict not related to references).
InvalidParentType
Parent type is not allowed by the type’s allowed_parent_types configuration.
CycleDetected
A cycle would be created in the group hierarchy.
LimitViolation
A configured limit (depth, width, etc.) would be exceeded.
TenantIncompatibility
Cross-tenant link would be created.
Each resource (identified by the pair (resource_type, resource_id))
belongs to groups in exactly one tenant. Returned by
ResourceGroupClient::add_membership when the target group’s tenant
differs from the tenant of any existing membership for the same
resource. The resource continues to exist — only the cross-tenant link
is rejected.
Service is temporarily unavailable.
AccessDenied
Access was denied by the authorization policy (PDP denial).
Internal
An internal error occurred.
Implementations§
Source§impl ResourceGroupError
impl ResourceGroupError
Sourcepub fn type_already_exists(code: impl Into<String>) -> Self
pub fn type_already_exists(code: impl Into<String>) -> Self
Create a TypeAlreadyExists error.
Sourcepub fn validation(message: impl Into<String>) -> Self
pub fn validation(message: impl Into<String>) -> Self
Create a Validation error.
Sourcepub fn allowed_parent_types_violation(message: impl Into<String>) -> Self
pub fn allowed_parent_types_violation(message: impl Into<String>) -> Self
Create an AllowedParentTypesViolation error.
Sourcepub fn conflict_active_references(message: impl Into<String>) -> Self
pub fn conflict_active_references(message: impl Into<String>) -> Self
Create a ConflictActiveReferences error.
Sourcepub fn invalid_parent_type(message: impl Into<String>) -> Self
pub fn invalid_parent_type(message: impl Into<String>) -> Self
Create an InvalidParentType error.
Sourcepub fn cycle_detected(message: impl Into<String>) -> Self
pub fn cycle_detected(message: impl Into<String>) -> Self
Create a CycleDetected error.
Sourcepub fn limit_violation(message: impl Into<String>) -> Self
pub fn limit_violation(message: impl Into<String>) -> Self
Create a LimitViolation error.
Sourcepub fn tenant_incompatibility(message: impl Into<String>) -> Self
pub fn tenant_incompatibility(message: impl Into<String>) -> Self
Create a TenantIncompatibility error.
Create a ServiceUnavailable error.
Sourcepub fn access_denied() -> Self
pub fn access_denied() -> Self
Create an AccessDenied error.
Trait Implementations§
Source§impl Clone for ResourceGroupError
impl Clone for ResourceGroupError
Source§fn clone(&self) -> ResourceGroupError
fn clone(&self) -> ResourceGroupError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceGroupError
impl Debug for ResourceGroupError
Source§impl Display for ResourceGroupError
impl Display for ResourceGroupError
Source§impl Error for ResourceGroupError
impl Error for ResourceGroupError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()