Raised when a named actor already exists. Note that this error is not only a subclass of RayError, but also a subclass of ValueError, to maintain backward compatibility. Args: error_message: The error message that contains information about the actor name and namespace.
| 1040 | |
| 1041 | @DeveloperAPI |
| 1042 | class ActorAlreadyExistsError(ValueError, RayError): |
| 1043 | """Raised when a named actor already exists. |
| 1044 | |
| 1045 | Note that this error is not only a subclass of RayError, but also a subclass of ValueError, to maintain backward compatibility. |
| 1046 | |
| 1047 | Args: |
| 1048 | error_message: The error message that contains information about the actor name and namespace. |
| 1049 | """ |
| 1050 | |
| 1051 | def __init__(self, error_message: str): |
| 1052 | super().__init__(error_message) |
| 1053 | self.error_message = error_message |
| 1054 | |
| 1055 | def __str__(self): |
| 1056 | return self.error_message |
| 1057 | |
| 1058 | |
| 1059 | @DeveloperAPI |
no outgoing calls
no test coverage detected
searching dependent graphs…