[Java] Remove singleton exceptions (#6765)

This commit is contained in:
chaokunyang
2020-01-13 10:28:06 +08:00
committed by Qing Wang
parent 453a214571
commit 36b2634479
3 changed files with 6 additions and 8 deletions
@@ -8,9 +8,8 @@ package org.ray.api.exception;
*/
public class RayActorException extends RayException {
public static final RayActorException INSTANCE = new RayActorException();
private RayActorException() {
public RayActorException() {
super("The actor died unexpectedly before finishing this task.");
}
}
@@ -5,9 +5,8 @@ package org.ray.api.exception;
*/
public class RayWorkerException extends RayException {
public static final RayWorkerException INSTANCE = new RayWorkerException();
private RayWorkerException() {
public RayWorkerException() {
super("The worker died unexpectedly while executing this task.");
}
}