In method exceptionally(), you only have access to the exception and not the result. Because as the method name indicates, the method only handles exceptional cases: when an exception happened. If the completable future was completed successfully, then the logic inside “exceptionally” will be skipped.
https://mincong.io/2020/05/30/exception-handling-in-completable-future/