Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 2,083 for perror (0.05 sec)

  1. schema/schema.go

    	return ParseWithSpecialTableName(dest, cacheStore, namer, "")
    }
    
    // ParseWithSpecialTableName get data type from dialector with extra schema table
    func ParseWithSpecialTableName(dest interface{}, cacheStore *sync.Map, namer Namer, specialTableName string) (*Schema, error) {
    	if dest == nil {
    		return nil, fmt.Errorf("%w: %+v", ErrUnsupportedDataType, dest)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    //
    //	  errs: errors from reading xl.meta in all disks
    //	   err: reduced errs
    //	bucket: the object name in question
    func shouldCheckForDangling(err error, errs []error, bucket string) bool {
    	// Avoid data in .minio.sys for now
    	if bucket == minioMetaBucket {
    		return false
    	}
    	switch {
    	// Check if we have a read quorum issue
    	case errors.Is(err, errErasureReadQuorum):
    		return true
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  3. cmd/erasure-metadata-utils.go

    	return reduceQuorumErrs(ctx, errs, ignoredErrs, readQuorum, errErasureReadQuorum)
    }
    
    // reduceWriteQuorumErrs behaves like reduceErrs but only for returning
    // values of maximally occurring errors validated against writeQuorum.
    func reduceWriteQuorumErrs(ctx context.Context, errs []error, ignoredErrs []error, writeQuorum int) (maxErr error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. cmd/warm-backend-azure.go

    	if err == nil {
    		return nil
    	}
    
    	bucket := ""
    	object := ""
    	if len(params) >= 1 {
    		bucket = params[0]
    	}
    	if len(params) == 2 {
    		object = params[1]
    	}
    
    	azureErr, ok := err.(*azcore.ResponseError)
    	if !ok {
    		// We don't interpret non Azure errors. As azure errors will
    		// have StatusCode to help to convert to object errors.
    		return err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. cmd/endpoint_test.go

    					t.Errorf("error: expected = <nil>, got = %v", err)
    				}
    			case err == nil:
    				t.Errorf("error: expected = %v, got = <nil>", test.expectedErr)
    			case test.expectedErr.Error() != err.Error():
    				t.Errorf("error: expected = %v, got = %v", test.expectedErr, err)
    			}
    
    			if err == nil {
    				if (test.expectedEndpoint.URL == nil) != (endpoint.URL == nil) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. tests/test_response_class_no_mediatype.py

    
    class JsonApiResponse(JSONResponse):
        media_type = "application/vnd.api+json"
    
    
    class Error(BaseModel):
        status: str
        title: str
    
    
    class JsonApiError(BaseModel):
        errors: typing.List[Error]
    
    
    @app.get(
        "/a",
        response_class=Response,
        responses={500: {"description": "Error", "model": JsonApiError}},
    )
    async def a():
        pass  # pragma: no cover
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. cmd/metacache.go

    	if m.status == scanStateStarted && time.Since(m.lastHandout) > metacacheMaxClientWait {
    		// Drop if client hasn't been seen for 3 minutes.
    		m.status = scanStateError
    		m.error = "client not seen"
    	}
    
    	if m.error == "" && update.error != "" {
    		m.error = update.error
    		m.status = scanStateError
    		m.ended = now
    	}
    	m.fileNotFound = m.fileNotFound || update.fileNotFound
    }
    
    // delete all cache data on disks.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. tests/test_additional_responses_custom_validationerror.py

    
    class JsonApiResponse(JSONResponse):
        media_type = "application/vnd.api+json"
    
    
    class Error(BaseModel):
        status: str
        title: str
    
    
    class JsonApiError(BaseModel):
        errors: typing.List[Error]
    
    
    @app.get(
        "/a/{id}",
        response_class=JsonApiResponse,
        responses={422: {"description": "Error", "model": JsonApiError}},
    )
    async def a(id):
        pass  # pragma: no cover
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. tests/update_many2many_test.go

    	}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user3 User
    	DB.Preload("Languages").Preload("Friends").Find(&user3, "id = ?", user.ID)
    	CheckUser(t, user2, user3)
    
    	if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user4 User
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  10. cmd/naughty-disk_test.go

    // specified by the developer. The purpose is to simulate errors
    // that are hard to simulate in practice like DiskNotFound.
    // Programmed errors are stored in errors field.
    type naughtyDisk struct {
    	// The real disk
    	disk StorageAPI
    	// Programmed errors: API call number => error to return
    	errors map[int]error
    	// The error to return when no error value is programmed
    	defaultErr error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top