Initialize ObjectReconstructionFailedError. Args: object_ref_hex: Hex string of the object reference. reason: ErrorType enum value indicating why reconstruction failed. reason_message: Human-readable explanation of the failure. owner_address:
(
self,
object_ref_hex: str,
reason: "ErrorType" = None,
reason_message: str = None,
owner_address: Optional[Address] = None,
call_site: str = "",
)
| 834 | } |
| 835 | |
| 836 | def __init__( |
| 837 | self, |
| 838 | object_ref_hex: str, |
| 839 | reason: "ErrorType" = None, |
| 840 | reason_message: str = None, |
| 841 | owner_address: Optional[Address] = None, |
| 842 | call_site: str = "", |
| 843 | ): |
| 844 | """Initialize ObjectReconstructionFailedError. |
| 845 | |
| 846 | Args: |
| 847 | object_ref_hex: Hex string of the object reference. |
| 848 | reason: ErrorType enum value indicating why reconstruction failed. |
| 849 | reason_message: Human-readable explanation of the failure. |
| 850 | owner_address: Address of the object's owner. |
| 851 | call_site: Call site where the object was created. |
| 852 | """ |
| 853 | super().__init__(object_ref_hex, owner_address, call_site) |
| 854 | self.reason = reason |
| 855 | self.reason_message = reason_message or self.REASON_MESSAGES.get( |
| 856 | self.reason, |
| 857 | "Unknown error reason. This should not happen, please file an issue " |
| 858 | "at https://github.com/ray-project/ray/issues.", |
| 859 | ) |
| 860 | |
| 861 | def __str__(self): |
| 862 | base = self._base_str() |