문제

I have a futures task that is doing some I/O operations over the socket to a server. When I use the get() method of the task to retrieve the result, I am getting ExecutionException, but with no cause i.e. getCause() returns null. In what scenario does this happen? I mean, I'm getting this exception since the task threw some exception right , but how can it go missing?

도움이 되었습니까?

해결책

throw null;

is legal in Java, but I've never seen that in the wild.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top