Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,421 for error (0.26 sec)

  1. cmd/storage-errors.go

    type StorageErr string
    
    func (h StorageErr) Error() string {
    	return string(h)
    }
    
    // Collection of basic errors.
    var baseErrs = []error{
    	errDiskNotFound,
    	errFaultyDisk,
    	errFaultyRemoteDisk,
    }
    
    var baseIgnoredErrs = baseErrs
    
    // Is a one place function which converts all os.PathError
    // into a more FS object layer friendly form, converts
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. internal/grid/errors.go

    	ErrIncorrectSequence = errors.New("out-of-sequence item received")
    )
    
    // ErrResponse is a remote error response.
    type ErrResponse struct {
    	msg string
    }
    
    func (e ErrResponse) Error() string {
    	return fmt.Sprintf("remote: %s", e.msg)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  3. tests/prepared_stmt_test.go

    			tx.Rollback()
    		}
    	}()
    	if err := tx.Error; err != nil {
    		t.Errorf("Failed to start transaction, got error %v\n", err)
    	}
    
    	if err := tx.Where("name=?", "zzjin").Delete(&User{}).Error; err != nil {
    		tx.Rollback()
    		t.Errorf("Failed to run one transaction, got error %v\n", err)
    	}
    
    	if err := tx.Create(&User{Name: "zzjin"}).Error; err != nil {
    		tx.Rollback()
    		t.Errorf("Failed to run one transaction, got error %v\n", err)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 07:55:43 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. cmd/admin-handler-utils.go

    }
    
    // wraps export error for more context
    func exportError(ctx context.Context, err error, fname, entity string) APIError {
    	if entity == "" {
    		return toAPIError(ctx, fmt.Errorf("error exporting %s with: %w", fname, err))
    	}
    	return toAPIError(ctx, fmt.Errorf("error exporting %s from %s with: %w", entity, fname, err))
    }
    
    // wraps import error for more context
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/handling-errors.md

    ```
    1 validation error
    path -> item_id
      value is not a valid integer (type=type_error.integer)
    ```
    
    #### `RequestValidationError` vs. `ValidationError`
    
    !!! warning "Achtung"
        Das folgende sind technische Details, die Sie überspringen können, wenn sie für Sie nicht wichtig sind.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  6. 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)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  7. internal/kms/single-key.go

    func (secretKey) Metrics(ctx context.Context) (kes.Metric, error) {
    	return kes.Metric{}, Error{
    		HTTPStatusCode: http.StatusNotImplemented,
    		APICode:        "KMS.NotImplemented",
    		Err:            errors.New("metrics are not supported"),
    	}
    }
    
    func (kms secretKey) CreateKey(_ context.Context, keyID string) error {
    	if keyID == kms.keyID {
    		return nil
    	}
    	return Error{
    		HTTPStatusCode: http.StatusNotImplemented,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/ztunnelserver.go

    			case err == nil:
    				log.Warn("ztunnel protocol error, unexpected message")
    				return fmt.Errorf("ztunnel protocol error, unexpected message")
    			default:
    				// we get here if error is deadline exceeded, which means ztunnel is alive.
    			}
    
    		case <-ctx.Done():
    			return nil
    		}
    	}
    }
    
    func (z *ztunnelServer) PodDeleted(ctx context.Context, uid string) error {
    	r := &zdsapi.WorkloadRequest{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  9. cni/pkg/util/pluginutil.go

    )
    
    type Watcher struct {
    	watcher *fsnotify.Watcher
    	Events  chan struct{}
    	Errors  chan error
    }
    
    // Waits until a file is modified (returns nil), the context is cancelled (returns context error), or returns error
    func (w *Watcher) Wait(ctx context.Context) error {
    	select {
    	case <-w.Events:
    		return nil
    	case err := <-w.Errors:
    		return err
    	case <-ctx.Done():
    		return ctx.Err()
    	}
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. tests/associations_has_many_test.go

    	}
    
    	if count := tx.Model(&item).Association("Contents").Count(); count != 3 {
    		t.Errorf("expected %d contents, got %d", 3, count)
    	}
    
    	var contents []ItemContent
    	if err := tx.Find(&contents).Error; err != nil {
    		t.Errorf("failed to find contents, got error: %v", err)
    	}
    	if len(contents) != 3 {
    		t.Errorf("expected %d contents, got %d", 3, len(contents))
    	}
    
    	// test delete
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 15.6K bytes
    - Viewed (0)
Back to top