CBLStatus got error code 104

I’m using couchbase 5.0.1 and couchbase-lite-android:2.0.0 for the my android application.
It’s quite good before I got error form CouchbaseLiteException. So anyone know where define list error code from CBL 2.0?
For example, I got code 104 but msg = null. So I don’t know what happen with CBL.

CouchbaseLiteException{domain=‘POSIXErrorDomain’, code=104, msg=null}
1 at com.couchbase.lite.CBLStatus.convertException(CBLStatus.java:51)
2 at com.couchbase.lite.Replicator.updateStateProperties(Replicator.java:623)
3 at com.couchbase.lite.Replicator.c4StatusChanged(Replicator.java:562)
4 at com.couchbase.lite.Replicator.access$100(Replicator.java:62)
5 at com.couchbase.lite.Replicator$2$1.run(Replicator.java:460)
6 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
7 at java.util.concurrent.FutureTask.run(FutureTask.java:237)

POSIX error codes are a set of standardized error codes not unique to couchbase. I don’t know if they are enumerated anywhere in the Couchbase codebase, but you can see them enumerated in various places like here. From this list you can see that 104 is ECONNRESET which means a connection has been reset by the other side (i.e. disconnected).

1 Like

Thank @borrrden so much. Your reply so useful for me.

Do you know where define list error code for these below error code?

CouchbaseLiteException{domain=‘CouchbaseLite’, code=11001, msg=null}
CouchbaseLiteException{domain=1, code=30, msg=file/data is not in the requested format}

The CouchbaseLite domain errors are defined here. Other errors come directly from LiteCore, and those should have relevant messages but you can also find a list of them here

Thank @borrrden so much. :grinning: