Resolves: Bug-7940
Change-Id: I07148b47b2d8a5efca28d7053ede040252e732db
Signed-off-by: Jozef Bacigal <jozef.bacigal@pantheon.tech>
case RIP:
final String errMsg = String.format("Device connection doesn't exist anymore. Primary connection status : %s",
deviceContext.getPrimaryConnectionContext().getConnectionState());
case RIP:
final String errMsg = String.format("Device connection doesn't exist anymore. Primary connection status : %s",
deviceContext.getPrimaryConnectionContext().getConnectionState());
- resultingFuture = Futures.immediateFailedFuture(new Throwable(errMsg));
+ resultingFuture = Futures.immediateFailedFuture(new ConnectionException(errMsg));
break;
default:
resultingFuture = Futures.immediateCheckedFuture(Boolean.TRUE);
break;
default:
resultingFuture = Futures.immediateCheckedFuture(Boolean.TRUE);