The replicator notifies error if error is not transient.
On Thursday, March 12, 2015 at 9:59:48 AM UTC-7, Hideki Itakura wrote:
>
> 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]> 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/907e283a-284c-4718-acd7-2b97214f3fdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.