Raised when a requested resource is not found.
| 72 | |
| 73 | |
| 74 | class ResourceNotFoundError(MACException): |
| 75 | """Raised when a requested resource is not found.""" |
| 76 | |
| 77 | def __init__(self, message: str, resource_type: str = None, resource_id: str = None, details: Dict[str, Any] = None): |
| 78 | super().__init__(message, "RESOURCE_NOT_FOUND", details or {}) |
| 79 | if resource_type: |
| 80 | self.details["resource_type"] = resource_type |
| 81 | if resource_id: |
| 82 | self.details["resource_id"] = resource_id |
| 83 | |
| 84 | |
| 85 | class ResourceConflictError(MACException): |
no outgoing calls
no test coverage detected