Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AddError (0.06 sec)

  1. finisher_api.go

    		err = ErrInvalidTransaction
    	}
    
    	if err != nil {
    		tx.AddError(err)
    	}
    
    	return tx
    }
    
    // Commit commits the changes in a transaction
    func (db *DB) Commit() *DB {
    	if committer, ok := db.Statement.ConnPool.(TxCommitter); ok && committer != nil && !reflect.ValueOf(committer).IsNil() {
    		db.AddError(committer.Commit())
    	} else {
    		db.AddError(ErrInvalidTransaction)
    	}
    	return db
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. callbacks/query.go

    		if !db.DryRun && db.Error == nil {
    			rows, err := db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    			if err != nil {
    				db.AddError(err)
    				return
    			}
    			defer func() {
    				db.AddError(rows.Close())
    			}()
    			gorm.Scan(rows, db, 0)
    		}
    	}
    }
    
    func BuildQuerySQL(db *gorm.DB) {
    	if db.Statement.Schema != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 10.1K bytes
    - Viewed (1)
  3. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                    logger.error("IndexUpdater is terminated.", t);
                    org.codelibs.fess.exec.Crawler.addError(t.getClass().getSimpleName());
                } else if (logger.isInfoEnabled()) {
                    logger.info("IndexUpdater is terminated.");
                    org.codelibs.fess.exec.Crawler.addError(t.getClass().getSimpleName());
                }
                forceStop();
            } finally {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

        public boolean hasErrorArtifactExceptions() {
            return errorArtifactExceptions != null;
        }
    
        public MetadataResolutionResult addError(Exception e) {
            exceptions = initList(exceptions);
    
            exceptions.add(e);
    
            return this;
        }
    
        public List<ArtifactResolutionException> getErrorArtifactExceptions() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. gorm.go

    	return db.Statement.Settings.Load(fmt.Sprintf("%p", db.Statement) + key)
    }
    
    // Callback returns callback manager
    func (db *DB) Callback() *callbacks {
    	return db.callbacks
    }
    
    // AddError add error to db
    func (db *DB) AddError(err error) error {
    	if err != nil {
    		if db.Config.TranslateError {
    			if errTranslator, ok := db.Dialector.(ErrorTranslator); ok {
    				err = errTranslator.Translate(err)
    			}
    		}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 09 11:29:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    			bugLogIf(ctx, stream.AddError(err.Error()))
    			return
    		}
    		encStream, err := stream.AddEncryptedStream("inspect.zip", nil)
    		if err != nil {
    			bugLogIf(ctx, stream.AddError(err.Error()))
    			return
    		}
    		addErr = func(msg string) {
    			inspectZipW.Close()
    			encStream.Close()
    			stream.AddError(msg)
    		}
    		defer encStream.Close()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/exec/Crawler.java

        @Resource
        protected PathMappingService pathMappingService;
    
        @Resource
        protected CrawlingInfoService crawlingInfoService;
    
        public static void addError(final String msg) {
            if (StringUtil.isNotBlank(msg)) {
                errors.offer(msg);
            }
        }
    
        public static class Options {
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    				break
    			}
    			// Invent new Name for the two-result function.
    			n := f.Name["2"+r.Name.Go]
    			if n == nil {
    				n = new(Name)
    				*n = *r.Name
    				n.AddError = true
    				n.Mangle = "_C2func_" + n.Go
    				f.Name["2"+r.Name.Go] = n
    			}
    			expr = getNewIdent(n.Mangle)
    			r.Name = n
    			break
    		}
    	case ctxExpr:
    		switch r.Name.Kind {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top