RemoteSdkException (@NotNull Throwable e) { if (e.getCause() instanceof RemoteCredentialException) { return new RemoteSdkException(RemoteBundle.message("remote.sdk.exception.cant.obtain.remote.credentials"), e); } else if (e instanceof RemoteSdkException) { return (RemoteSdkException)e; } else { return new RemoteSdkException(e.getMessage(), e); } }