Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,242 for Field3 (0.33 sec)

  1. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    在 `yield` 后抛出 `HTTPException` 或类似的异常是很诱人的,但是**这不起作用**。
    
    带有`yield`的依赖中的退出代码在响应发送之后执行,因此[异常处理程序](../handling-errors.md#install-custom-exception-handlers){.internal-link target=_blank}已经运行过。没有任何东西可以捕获退出代码(在`yield`之后)中的依赖抛出的异常。
    
    所以,如果在`yield`之后抛出`HTTPException`,默认(或任何自定义)异常处理程序捕获`HTTPException`并返回HTTP 400响应的机制将不再能够捕获该异常。
    
    这就是允许在依赖中设置的任何东西(例如数据库会话(DB session))可以被后台任务使用的原因。
    
    后台任务在响应发送之后运行。因此,无法触发`HTTPException`,因为甚至没有办法更改*已发送*的响应。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/invalid/httproute/invalid-filter-wrong-field.yaml

    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: invalid-filter-wrong-field
    spec:
      rules:
      - filters:
        - type: RequestHeaderModifier
          requestRedirect: 
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 212 bytes
    - Viewed (0)
  3. platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractBasicGroovyCompilerIntegrationSpec/compileBadCode/src/main/groovy/BrokenClass.groovy

    class BrokenClass {
        Unknown1 field1
        Unknown2 field2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 62 bytes
    - Viewed (0)
  4. releasenotes/notes/add-affinity-field-to-istiod.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: installation
    issue: []
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 16:53:36 UTC 2023
    - 200 bytes
    - Viewed (0)
  5. releasenotes/notes/add-tolerations-field-to-istiod.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: installation
    issue: []
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 02 03:09:52 UTC 2023
    - 203 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    apiVersion: foo
    kind: bar
    metadata:
      name: no-errors
    spec:
      field1: val1
      field2: val2
      nested:
      - name: nestedName
        nestedField1: val1`
    	yamlOneErr := `---
    apiVersion: foo
    kind: bar
    metadata:
      name: no-errors
    spec:
      field1: val1
      field2: val2
      field2: val3
      nested:
      - name: nestedName
        nestedField1: val1`
    	yamlManyErrs := `---
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  7. src/runtime/netpoll_wasip1.go

    //   subscriptions might not match the index of the associated event in the
    //   events buffer, both the subscription and event structs contain a userdata
    //   field and when a subscription yields an event the userdata fields will
    //   match.
    // - there's no explicit timeout parameter, although a time limit can be added
    //   by using "clock" subscriptions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

    - Rule source classes must directly extend org.gradle.model.RuleSource
    - Field field1 is not valid: Fields must be static final.
    - Field field2 is not valid: Fields must be static final.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/struct.go

    // if no field has a tag, tags may be nil.
    func NewStruct(fields []*Var, tags []string) *Struct {
    	var fset objset
    	for _, f := range fields {
    		if f.name != "_" && fset.insert(f) != nil {
    			panic("multiple fields with the same name")
    		}
    	}
    	if len(tags) > len(fields) {
    		panic("more tags than fields")
    	}
    	s := &Struct{fields: fields, tags: tags}
    	s.markComplete()
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. internal/event/target/nsq_test.go

    )
    
    func TestNSQArgs_Validate(t *testing.T) {
    	type fields struct {
    		Enable      bool
    		NSQDAddress xnet.Host
    		Topic       string
    		TLS         struct {
    			Enable     bool
    			SkipVerify bool
    		}
    	}
    	tests := []struct {
    		name    string
    		fields  fields
    		wantErr bool
    	}{
    		{
    			name: "test1_missing_topic",
    			fields: fields{
    				Enable: true,
    				NSQDAddress: xnet.Host{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top