| 480 | """Raised when the actor is temporarily unavailable but may be available later.""" |
| 481 | |
| 482 | def __init__(self, error_message: str, actor_id: Optional[bytes]): |
| 483 | actor_id = ActorID(actor_id).hex() if actor_id is not None else None |
| 484 | error_msg = ( |
| 485 | f"The actor {actor_id} is unavailable: {error_message}. The task may or " |
| 486 | "may not have been executed on the actor." |
| 487 | ) |
| 488 | actor_init_failed = False |
| 489 | preempted = False |
| 490 | |
| 491 | super().__init__(actor_id, error_msg, actor_init_failed, preempted) |
| 492 | |
| 493 | |
| 494 | @PublicAPI |