Sorry, missing information. I'm using android. My snapshot code below :
MyApplication.java
==============
private Replication.ChangeListener getReplicationChangeListener() {
return new Replication.ChangeListener() {
@Override
public void changed(Replication.ChangeEvent event) {
Replication replication = event.getSource();
if (event.getError() != null) {
Throwable lastError = event.getError();
if (lastError instanceof ConnectTimeoutException) {
ConnectTimeoutException connectTimeoutException =
(ConnectTimeoutException) lastError;
onSyncConnectTimeoutObservable.notifyChanges(connectTimeoutException.getMessage());
}
}
}
}
}
Thank you.
On Thu, Mar 12, 2015 at 1:39 PM, Indrajaya :) <[email protected]> wrote:
> Hello!
>
> I want to capture any exception regarding to network exception (e.g.
> connection timeout, etc) when I start replication. Can someone tell me how
> to do it? Thank you.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/CALUb8yMd2DBN7WjB6nHW_C5e7Sb1ZtvReOBRAggiiYvbEBSxJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.