MCPcopy Create free account
hub / github.com/ray-project/ray / __init__

Method __init__

python/ray/exceptions.py:836–859  ·  view source on GitHub ↗

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 = "",
    )

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
__init__Method · 0.45

Tested by

no test coverage detected