Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for armerror (0.21 sec)

  1. cmd/admin-handler-utils.go

    }
    
    func toAdminAPIErr(ctx context.Context, err error) APIError {
    	if err == nil {
    		return noError
    	}
    
    	var apiErr APIError
    	switch e := err.(type) {
    	case policy.Error:
    		apiErr = APIError{
    			Code:           "XMinioMalformedIAMPolicy",
    			Description:    e.Error(),
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	case config.ErrConfigNotFound:
    		apiErr = APIError{
    			Code:           "XMinioConfigNotFoundError",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. scan.go

    				db.scanIntoStruct(rows, reflectValue, values, fields, joinFields)
    			}
    		default:
    			db.AddError(rows.Scan(dest))
    		}
    	}
    
    	if err := rows.Err(); err != nil && err != db.Error {
    		db.AddError(err)
    	}
    
    	if db.RowsAffected == 0 && db.Statement.RaiseErrorOnNotFound && db.Error == nil {
    		db.AddError(ErrRecordNotFound)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. callbacks/create.go

    			)
    			if db.AddError(err) == nil {
    				defer func() {
    					db.AddError(rows.Close())
    				}()
    				gorm.Scan(rows, db, mode)
    			}
    
    			return
    		}
    
    		result, err := db.Statement.ConnPool.ExecContext(
    			db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...,
    		)
    		if err != nil {
    			db.AddError(err)
    			return
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. cmd/api-errors.go

    		case kms.Error:
    			apiErr = APIError{
    				Description:    e.Err.Error(),
    				Code:           e.APICode,
    				HTTPStatusCode: e.HTTPStatusCode,
    			}
    		case batchReplicationJobError:
    			apiErr = APIError{
    				Description:    e.Description,
    				Code:           e.Code,
    				HTTPStatusCode: e.HTTPStatusCode,
    			}
    		case InvalidRange:
    			apiErr = APIError{
    				Code:           "InvalidRange",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  5. callbacks/update.go

    			if db.Statement.Schema.BeforeSave {
    				if i, ok := value.(BeforeSaveInterface); ok {
    					called = true
    					db.AddError(i.BeforeSave(tx))
    				}
    			}
    
    			if db.Statement.Schema.BeforeUpdate {
    				if i, ok := value.(BeforeUpdateInterface); ok {
    					called = true
    					db.AddError(i.BeforeUpdate(tx))
    				}
    			}
    
    			return called
    		})
    	}
    }
    
    // Update update hook
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 05:44:55 GMT 2024
    - 9.4K bytes
    - Viewed (1)
  6. cmd/bucket-versioning-handler.go

    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    			Description:    "An Object Lock configuration is present on this bucket, versioning cannot be suspended.",
    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    	if rc, _ := getReplicationConfig(ctx, bucket); rc != nil && v.Suspended() {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. callbacks/preload.go

    			switch reflectFieldValue.Kind() {
    			case reflect.Struct:
    				tx.AddError(rel.Field.Set(tx.Statement.Context, data, elem.Interface()))
    			case reflect.Slice, reflect.Array:
    				if reflectFieldValue.Type().Elem().Kind() == reflect.Ptr {
    					tx.AddError(rel.Field.Set(tx.Statement.Context, data, reflect.Append(reflectFieldValue, elem).Interface()))
    				} else {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. callbacks.go

    			if errors.Is(err, schema.ErrUnsupportedDataType) && stmt.Table == "" && stmt.TableExpr == nil {
    				db.AddError(fmt.Errorf("%w: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")", err))
    			} else {
    				db.AddError(err)
    			}
    		}
    	}
    
    	// assign stmt.ReflectValue
    	if stmt.Dest != nil {
    		stmt.ReflectValue = reflect.ValueOf(stmt.Dest)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 8.6K bytes
    - Viewed (1)
  9. cmd/handler-utils.go

    	case strings.HasPrefix(r.URL.Path, peerRESTPrefix):
    		writeErrorResponseString(r.Context(), w, APIError{
    			Code:           "XMinioPeerVersionMismatch",
    			Description:    desc,
    			HTTPStatusCode: http.StatusUpgradeRequired,
    		}, r.URL)
    	case strings.HasPrefix(r.URL.Path, storageRESTPrefix):
    		writeErrorResponseString(r.Context(), w, APIError{
    			Code:           "XMinioStorageVersionMismatch",
    			Description:    desc,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  10. cni/pkg/nodeagent/fakes_test.go

    	deletedPods atomic.Int32
    	addedPods   atomic.Int32
    	addError    error
    }
    
    func (f *fakeZtunnel) Run(ctx context.Context) {
    }
    
    func (f *fakeZtunnel) PodDeleted(ctx context.Context, uid string) error {
    	f.deletedPods.Add(1)
    	return nil
    }
    
    func (f *fakeZtunnel) PodAdded(ctx context.Context, pod *corev1.Pod, netns Netns) error {
    	f.addedPods.Add(1)
    	return f.addError
    }
    
    func (f *fakeZtunnel) Close() error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top