internal virtual RevisionInternal GetCurrentRevisionInternal() { if (currentRevision != null) { try { currentRevision = database.LoadRevisionBody(currentRevision, EnumSet.NoneOf <Database.TDContentOptions >()); } catch (CouchbaseLiteException e) { throw new RuntimeException(e); } } return(currentRevision); }
internal Boolean LoadProperties() { try { var loadRevision = Database.LoadRevisionBody(RevisionInternal, EnumSet.NoneOf <TDContentOptions>()); if (loadRevision == null) { Log.W(Database.Tag, "Couldn't load body/sequence of {0}" + this); return(false); } RevisionInternal = loadRevision; return(true); } catch (CouchbaseLiteException e) { throw new RuntimeException(e); } }
//Throws CouchbaseLiteException other than NotFound internal bool LoadProperties() { try { var loadRevision = Database.LoadRevisionBody(RevisionInternal); if (loadRevision == null) { Log.To.Database.W(Tag, "Couldn't load body/sequence of {0}", this); return(false); } RevisionInternal = loadRevision; return(true); } catch (CouchbaseLiteException e) { if (e.Code == StatusCode.NotFound) { return(false); } throw; } }