#pragma warning disable 1591 public bool MoveNext() { if (_e == null) { return(false); } var err = new C4Error(); var retVal = Native.c4queryenum_next(_e, &err); if (retVal) { _current = new CBForestQueryStatus(_e); } else { if (err.code != (int)ForestDBStatus.Success) { throw new CBForestException(err); } } return(retVal); }
public CBForestException(C4Error error) : base(String.Format("CBForest exception ({0})", error)) { Error = error; }
/// <summary> /// Constructor /// </summary> /// <param name="error">The error that is the source of the exception.</param> public CBForestException(C4Error error) : base(String.Format("{0} (Code: {1})", Native.c4error_getMessage(error), error)) { Error = error; }
/// <summary> /// Allows the operation to succeed even if the given error /// occurs /// </summary> /// <returns>The current object for further fluent operations</returns> /// <param name="error">The error to allow.</param> public RetryHandler AllowError(C4Error error) { _allowedErrors.Add(error); return(this); }