Raised when there's a conflict with an existing resource.
| 83 | |
| 84 | |
| 85 | class ResourceConflictError(MACException): |
| 86 | """Raised when there's a conflict with an existing resource.""" |
| 87 | |
| 88 | def __init__(self, message: str, resource_type: str = None, resource_id: str = None, details: Dict[str, Any] = None): |
| 89 | super().__init__(message, "RESOURCE_CONFLICT", details or {}) |
| 90 | if resource_type: |
| 91 | self.details["resource_type"] = resource_type |
| 92 | if resource_id: |
| 93 | self.details["resource_id"] = resource_id |
| 94 | |
| 95 | |
| 96 | class TimeoutError(MACException): |
no outgoing calls
no test coverage detected