failure

Returns an instance that encapsulates the given PubNubException as failure.


fun <T> failure(exception: Throwable): Result<T>