Esempio n. 1
0
        public static CouchbaseLiteException CreateExceptionAndLog(DomainLogger domain, StatusCode code, string tag,
                                                                   string format, params object[] args)
        {
            var message = String.Format(format, args);

            return(CreateExceptionAndLog(domain, code, tag, message));
        }
Esempio n. 2
0
 public static CouchbaseLiteException CreateExceptionAndLog(DomainLogger domain, Exception inner,
                                                            StatusCode code, string tag, string message)
 {
     domain.E(tag, String.Format("{0}, throwing CouchbaseLiteException",
                                 message), inner);
     return(new CouchbaseLiteException(message, inner)
     {
         Code = code
     });
 }
Esempio n. 3
0
 public static CouchbaseLiteException CreateExceptionAndLog(DomainLogger domain, Exception inner, string tag, string message)
 {
     return(CreateExceptionAndLog(domain, inner, StatusCode.Exception, tag, message));
 }
Esempio n. 4
0
 public static CouchbaseLiteException CreateExceptionAndLog(DomainLogger domain, StatusCode code, string tag, string message)
 {
     domain.E(tag, "{0}, throwing CouchbaseLiteException", message);
     return(new CouchbaseLiteException(message, code));
 }