Improved KeyboardInterrupt Exception Handling (#5237)

This commit is contained in:
Richard Liaw
2019-07-22 02:29:56 -07:00
committed by GitHub
parent f9043cc49a
commit 53fb876a5f
5 changed files with 34 additions and 3 deletions
+13
View File
@@ -77,6 +77,19 @@ class RayActorError(RayError):
return "The actor died unexpectedly before finishing this task."
class RayletError(RayError):
"""Indicates that the Raylet client has errored.
This exception can be thrown when the raylet is killed.
"""
def __init__(self, client_exc):
self.client_exc = client_exc
def __str__(self):
return "The Raylet died with this message: {}".format(self.client_exc)
class UnreconstructableError(RayError):
"""Indicates that an object is lost and cannot be reconstructed.