Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 501 for Errorfs (0.09 sec)

  1. cmd/typed-errors.go

    package cmd
    
    import (
    	"errors"
    )
    
    // errInvalidArgument means that input argument is invalid.
    var errInvalidArgument = errors.New("Invalid arguments specified")
    
    // errMethodNotAllowed means that method is not allowed.
    var errMethodNotAllowed = errors.New("Method not allowed")
    
    // errSignatureMismatch means signature did not match.
    var errSignatureMismatch = errors.New("Signature does not match")
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 16 07:34:24 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    }
    
    // toAPIErrorCode - Converts embedded errors. Convenience
    // function written to handle all cases where we have known types of
    // errors returned by underlying layers.
    func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
    	if err == nil {
    		return ErrNone
    	}
    
    	// Errors that are generated by net.Conn and any context errors must be handled here.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 16 07:34:24 UTC 2025
    - 93K bytes
    - Viewed (1)
  3. docs/es/docs/tutorial/handling-errors.md

    Los códigos de estado en el rango de 400 significan que hubo un error por parte del cliente.
    
    ¿Recuerdas todos esos errores de **"404 Not Found"** (y chistes)?
    
    ## Usa `HTTPException`
    
    Para devolver responses HTTP con errores al cliente, usa `HTTPException`.
    
    ### Importa `HTTPException`
    
    {* ../../docs_src/handling_errors/tutorial001.py hl[1] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/handling-errors.md

    # Handling Errors { #handling-errors }
    
    There are many situations in which you need to notify an error to a client that is using your API.
    
    This client could be a browser with a frontend, a code from someone else, an IoT device, etc.
    
    You could need to tell the client that:
    
    * The client doesn't have enough privileges for that operation.
    * The client doesn't have access to that resource.
    * The item the client was trying to access doesn't exist.
    * etc.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/handling-errors.md

    Der Exceptionhandler wird einen `Request` und die Exception entgegennehmen.
    
    {* ../../docs_src/handling_errors/tutorial004.py hl[2,14:16] *}
    
    Wenn Sie nun `/items/foo` besuchen, erhalten Sie statt des Default-JSON-Errors:
    
    ```JSON
    {
        "detail": [
            {
                "loc": [
                    "path",
                    "item_id"
                ],
                "msg": "value is not a valid integer",
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. docs/debugging/inspect/decrypt-v2.go

    			if err == io.EOF {
    				if extracted {
    					return nil
    				}
    				return errors.New("no data found on stream")
    			}
    			if errors.Is(err, estream.ErrNoKey) {
    				fmt.Println("Skipping", stream.Name, "no private key")
    				if err := stream.Skip(); err != nil {
    					return fmt.Errorf("stream skip: %w", err)
    				}
    				continue
    			}
    			return fmt.Errorf("next stream: %w", err)
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 17 17:09:42 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. tests/create_test.go

    	}
    
    	if u1.ID == 0 {
    		t.Errorf("user's primary key should has value after create, got : %v", u1.ID)
    	}
    
    	if u1.CreatedAt.IsZero() {
    		t.Errorf("user's created at should be not zero")
    	}
    
    	if u1.UpdatedAt.IsZero() {
    		t.Errorf("user's updated at should be not zero")
    	}
    
    	var newUser User
    	if err := DB.Where("id = ?", u1.ID).First(&newUser).Error; err != nil {
    		t.Fatalf("errors happened when query: %v", err)
    	} else {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 09:55:20 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  8. cmd/format-erasure.go

    		return "", err
    	}
    	if meta.Version != formatMetaVersionV1 {
    		return "", fmt.Errorf(`format.Version expected: %s, got: %s`, formatMetaVersionV1, meta.Version)
    	}
    	if meta.Format != formatBackendErasure && meta.Format != formatBackendErasureSingle {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  9. cmd/bucket-quota.go

    	timedout := OperationTimedOut{}
    	if err != nil && !errors.Is(err, context.DeadlineExceeded) && !errors.As(err, &timedout) {
    		if len(dui.BucketsUsage) > 0 {
    			internalLogOnceIf(GlobalContext, fmt.Errorf("unable to retrieve usage information for bucket: %s, relying on older value cached in-memory: err(%v)", bucket, err), "bucket-usage-cache-"+bucket)
    		} else {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Aug 06 23:48:58 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. cmd/erasure-metadata-utils_test.go

    		if cdiskCount != testCase.diskCount {
    			t.Errorf("Test %d: Expected %d, got %d", i+1, testCase.diskCount, cdiskCount)
    		}
    	}
    }
    
    // Test for reduceErrs, reduceErr reduces collection
    // of errors into a single maximal error with in the list.
    func TestReduceErrs(t *testing.T) {
    	canceledErrs := make([]error, 0, 5)
    	for i := range 5 {
    		canceledErrs = append(canceledErrs, fmt.Errorf("error %d: %w", i, context.Canceled))
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top