Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1321 - 1330 of 1,444 for scratch (0.06 sec)

  1. docs/en/docs/tutorial/handling-errors.md

    This way, if any part of Starlette's internal code, or a Starlette extension or plug-in, raises a Starlette `HTTPException`, your handler will be able to catch and handle it.
    
    In this example, to be able to have both `HTTPException`s in the same code, Starlette's exceptions is renamed to `StarletteHTTPException`:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/HostAndPort.java

              !portString.startsWith("+") && CharMatcher.ascii().matchesAllOf(portString),
              "Unparseable port number: %s",
              hostPortString);
          try {
            port = Integer.parseInt(portString);
          } catch (NumberFormatException e) {
            throw new IllegalArgumentException("Unparseable port number: " + hostPortString);
          }
          checkArgument(isValidPort(port), "Port number out of range: %s", hostPortString);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 22:02:22 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

                // we replace the thread local of the clone to prevent write through and enforce the new default value
                clone.currentProject = ThreadLocal.withInitial(() -> current);
                return clone;
            } catch (CloneNotSupportedException e) {
                throw new RuntimeException("Bug", e);
            }
        }
    
        public Date getStartTime() {
            return request.getStartTime();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. architecture/ambient/ztunnel-cni-lifecycle.md

    1. At this point, we have both Ztunnels listening. New connections will be assigned to _either one_.
    1. Shortly after, Kubernetes will start terminating `ztunnel-old`. It does this initially by sending a `SIGTERM`. `ztunnel-old` will catch this, and start "draining".
    1. Immediately upon starting a drain, `ztunnel-old` will close its listeners. Now only `ztunnel-new` is listening. Critically, at all times there was at least one ztunnel listening.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jul 17 23:10:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

          keyAlgorithm: String,
        ): PrivateKey {
          try {
            val keyFactory = KeyFactory.getInstance(keyAlgorithm)
            return keyFactory.generatePrivate(PKCS8EncodedKeySpec(data.toByteArray()))
          } catch (e: GeneralSecurityException) {
            throw IllegalArgumentException("failed to decode private key", e)
          }
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLongs.java

      public static long decode(String stringValue) {
        ParseRequest request = ParseRequest.fromString(stringValue);
    
        try {
          return parseUnsignedLong(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
          throw decodeException;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 21:04:48 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/networking/v1beta1/generated.proto

      // +optional
      optional string host = 1;
    
      // IngressRuleValue represents a rule to route requests for this IngressRule.
      // If unspecified, the rule defaults to a http catch-all. Whether that sends
      // just traffic matching the host to the default backend or all traffic to the
      // default backend, is left to the controller fulfilling the Ingress. Http is
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

            try {
                buildQuery("sort:timestamp.xxx");
                fail();
            } catch (InvalidQueryException e) {
                // ok
            }
    
            try {
                buildQuery("sort:aaa");
                fail();
            } catch (InvalidQueryException e) {
                // ok
            }
        }
    
        public void test_build_fuzzy() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val authenticator =
          okhttp3.Authenticator { route: Route?, response: Response? ->
            responses.offer(response!!.body.string())
            try {
              latch.await()
            } catch (e: InterruptedException) {
              throw AssertionError()
            }
            response.request
          }
        val blockingAuthClient =
          client.newBuilder()
            .authenticator(authenticator)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        // it's shared to avoid using too much memory in tests
        float[] sharedArray = new float[arraysDim2];
        Arrays.fill(arrays, sharedArray);
    
        try {
          Floats.concat(arrays);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Floats.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top