Neither one of them.
I would throw a custom Exception
, not even a RuntimeException
.
And if you really need that boolean for whatever reason, return true
if it was successful, even if the mClientConnection
is null
, the method did what it was intended to do.