Package org.apache.sshd.common.future
Interface WithException
-
- All Known Subinterfaces:
AuthFuture,Cancellable,ConnectFuture,IoConnectFuture,OpenFuture
- All Known Implementing Classes:
DefaultAuthFuture,DefaultCancellableSshFuture,DefaultConnectFuture,DefaultIoConnectFuture,DefaultOpenFuture
public interface WithExceptionSomething that may carry a failure exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ThrowablegetException()Returns the cause of the failure.voidsetException(java.lang.Throwable exception)Sets the exception that caused the operation to fail.
-
-
-
Method Detail
-
getException
java.lang.Throwable getException()
Returns the cause of the failure.- Returns:
- the
Throwableof the failure, ornullif not failed (yet).
-
setException
void setException(java.lang.Throwable exception)
Sets the exception that caused the operation to fail.- Parameters:
exception- TheThrowableto set; must be non-null
-
-