Hi Indrajaya,
The replicator notifies error if error is transient. ConnectTimeoutException 
might not be notified.
Thanks,


On Wednesday, March 11, 2015 at 11:43:45 PM UTC-7, Indrajaya bin Prawoto 
wrote:
>
> 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] 
> <javascript:>> 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/3867f6a9-2778-4cb8-ab02-ec0710337d20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to