public void run() {
final V value;
try {
value = getDone(future);
} catch (ExecutionException e) {
callback.onFailure(e.getCause());
return;
} catch (RuntimeException | Error e) {
callback.onFailure(e);
return;
}
callback.onSuccess(value);
}
I think the "|" computation is a kind of bit computation, and it can be applied to byte, int, long and so on. But what's the meaning when "|" symbol applied to some java classes?
RuntimeException | Error e