Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 2,409 for error (0.03 seconds)

  1. cmd/admin-handler-utils.go

    // specific error.
    func toAdminAPIErrCode(ctx context.Context, err error) APIErrorCode {
    	if errors.Is(err, errErasureWriteQuorum) {
    		return ErrAdminConfigNoQuorum
    	}
    	return toAPIErrorCode(ctx, err)
    }
    
    // wraps export error for more context
    func exportError(ctx context.Context, err error, fname, entity string) APIError {
    	if entity == "" {
    Created: 2026-04-05 19:28
    - Last Modified: 2024-07-03 07:17
    - 8.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

            final CountDownLatch latch = new CountDownLatch(3);
    
            deferred.promise().error(error -> {
                callbackCount.incrementAndGet();
                latch.countDown();
            }).error(error -> {
                callbackCount.incrementAndGet();
                latch.countDown();
            }).error(error -> {
                callbackCount.incrementAndGet();
                latch.countDown();
            });
    
    Created: 2026-04-17 09:08
    - Last Modified: 2026-02-01 12:48
    - 21.1K bytes
    - Click Count (0)
  3. tests/create_test.go

    		t.Errorf("no error should happen when auto migrate, but got %v", err)
    	}
    
    	if err := DB.Create(&EmptyStruct{}).Error; err != nil {
    		t.Errorf("No error should happen when creating user, but got %v", err)
    	}
    }
    
    func TestCreateEmptySlice(t *testing.T) {
    	data := []User{}
    	if err := DB.Create(&data).Error; err != gorm.ErrEmptySlice {
    		t.Errorf("no data should be created, got %v", err)
    	}
    Created: 2026-04-05 09:35
    - Last Modified: 2025-07-21 09:55
    - 26.8K bytes
    - Click Count (0)
  4. cmd/storage-rest_test.go

    		t.Fatalf("unexpected error %v", err)
    	}
    
    	if err = storage.MakeVol(t.Context(), "bar"); err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    
    	restClient, err := newStorageRESTClient(endpoint, false, tg.Managers[0])
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for {
    		_, err := restClient.DiskInfo(t.Context(), DiskInfoOptions{})
    		if err == nil || errors.Is(err, errUnformattedDisk) {
    			break
    Created: 2026-04-05 19:28
    - Last Modified: 2025-04-09 14:28
    - 11.4K bytes
    - Click Count (0)
  5. internal/grid/handlers.go

    }
    
    // RemoteErr is a remote error type.
    // Any error seen on a remote will be returned like this.
    type RemoteErr string
    
    // NewRemoteErr creates a new remote error.
    // The error type is not preserved.
    func NewRemoteErr(err error) *RemoteErr {
    	if err == nil {
    		return nil
    	}
    	r := RemoteErr(err.Error())
    	return &r
    }
    
    Created: 2026-04-05 19:28
    - Last Modified: 2025-02-18 16:25
    - 27.7K bytes
    - Click Count (0)
  6. cmd/sftp-server-driver.go

    }
    
    // TransferError will catch network errors during transfer.
    // When TransferError() is called Close() will also
    // be called, so we do not need to Wait() here.
    func (w *writerAt) TransferError(err error) {
    	_ = w.w.CloseWithError(err)
    	_ = w.r.CloseWithError(err)
    	w.err = err
    }
    
    func (w *writerAt) Close() (err error) {
    	switch {
    	case len(w.buffer) > 0:
    Created: 2026-04-05 19:28
    - Last Modified: 2025-02-10 16:35
    - 11.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test constructor DcerpcException(int error) with an unknown error code.
         */
        @Test
        void testConstructorWithError_unknownCode() {
            int errorCode = 0x12345678; // An arbitrary unknown error code
            DcerpcException exception = new DcerpcException(errorCode);
    
            assertEquals(errorCode, exception.getErrorCode(), "Error code should match the input.");
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 5.8K bytes
    - Click Count (0)
  8. cmd/xl-storage.go

    		if contextCanceled(ctx) {
    			parts[idx] = &ObjectPartInfo{
    				Error:  ctx.Err().Error(),
    				Number: partNumber,
    			}
    			continue
    		}
    
    		if err := Access(pathJoin(volumeDir, pathutil.Dir(partMetaPath), fmt.Sprintf("part.%d", partNumber))); err != nil {
    			parts[idx] = &ObjectPartInfo{
    				Error:  err.Error(),
    				Number: partNumber,
    			}
    			continue
    		}
    
    Created: 2026-04-05 19:28
    - Last Modified: 2025-09-28 20:59
    - 91.7K bytes
    - Click Count (0)
  9. association.go

    		Relationship: association.Relationship,
    		Error:        association.Error,
    		Unscope:      true,
    	}
    }
    
    func (association *Association) Find(out interface{}, conds ...interface{}) error {
    	if association.Error == nil {
    		association.Error = association.buildCondition().Find(out, conds...).Error
    	}
    	return association.Error
    }
    
    func (association *Association) Append(values ...interface{}) error {
    	values = expandValues(values)
    
    Created: 2026-04-05 09:35
    - Last Modified: 2025-10-26 12:09
    - 23.6K bytes
    - Click Count (0)
  10. cmd/erasure-server-pool.go

    	derrs := make([]error, len(poolIndices))
    	dobjects := make([]ObjectInfo, len(poolIndices))
    
    	// Delete concurrently in all server pools that reported no error or read quorum error
    	// where the read quorum issue is from metadata inconsistency.
    	var wg sync.WaitGroup
    	for idx, pe := range poolIndices {
    Created: 2026-04-05 19:28
    - Last Modified: 2025-09-28 20:59
    - 89.2K bytes
    - Click Count (0)
Back to Top