- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 224 for caught (0.18 sec)
-
src/runtime/testdata/testprogcgo/sigfwd.go
int *sigfwdP; static void sigsegv() { expectCSigsegv = 1; *sigfwdP = 1; fprintf(stderr, "ERROR: C SIGSEGV not thrown on caught?.\n"); exit(2); } static void segvhandler(int signum) { if (signum == SIGSEGV) { if (expectCSigsegv == 0) { fprintf(stderr, "SIGSEGV caught in C unexpectedly\n"); exit(1); } fprintf(stdout, "OK\n"); exit(0); // success } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 01 17:06:49 UTC 2022 - 1.6K bytes - Viewed (0) -
tests/test_ws_router.py
""" Verify that a validation in a dependency invokes the correct exception handler """ caught = [] @websocket_middleware async def catcher(websocket, call_next): try: return await call_next() except Exception as e: # pragma: no cover caught.append(e) raise myapp = make_app(middleware=[Middleware(catcher)])
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Jun 11 19:08:14 UTC 2023 - 7.5K bytes - Viewed (0) -
okhttp-coroutines/README.md
Cancellation if implemented sensibly in both directions. Cancelling a coroutine scope, will cancel the call. Cancelling a call, will throw a CancellationException
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Nov 09 15:47:27 UTC 2023 - 609 bytes - Viewed (0) -
test/fixedbugs/issue11737.go
// errorcheck // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 11737 - invalid == not being caught until generated switch code was compiled package p func f() func s(x interface{}) { switch x { case f: // ERROR "invalid case f \(type func\(\)\) in switch \(incomparable type\)|can only be compared to nil" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 04 23:42:25 UTC 2022 - 437 bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheLoader.java
* treated like any other {@code Exception} in all respects except that, when it is caught, * the thread's interrupt status is set * @since 11.0 */ public Map<K, V> loadAll(Iterable<? extends K> keys) throws Exception { // This will be caught by getAll(), causing it to fall back to multiple calls to // LoadingCache.get throw new UnsupportedLoadingOperationException();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 19 20:20:14 UTC 2022 - 9.5K bytes - Viewed (0) -
test/fixedbugs/issue9521.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that an incorrect use of the blank identifier is caught. // Does not compile. package main func f() (_, _ []int) { return } func g() (x []int, y float64) { return } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 12 23:07:01 UTC 2021 - 597 bytes - Viewed (0) -
pilot/pkg/util/network/ip.go
func AllIPv6(ipAddrs []string) bool { for i := 0; i < len(ipAddrs); i++ { addr, err := netip.ParseAddr(ipAddrs[i]) if err != nil { // Should not happen, invalid IP in proxy's IPAddresses slice should have been caught earlier, // skip it to prevent a panic. continue } if addr.Is4() { return false } } return true } // AllIPv4 checks the addresses slice and returns true if all addresses
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 21:27:21 UTC 2023 - 6.3K bytes - Viewed (0) -
test/method1.go
// errorcheck // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify that method redeclarations are caught by the compiler. // Does not compile. package main type T struct{} func (t *T) M(int, string) // GCCGO_ERROR "previous" func (t *T) M(int, float64) {} // ERROR "already declared|redefinition"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:59:19 UTC 2022 - 739 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/catchpanic.go
return; registerAbortHandler(); } */ import "C" import "os" func init() { register("CgoCatchPanic", CgoCatchPanic) } // Test that the SIGABRT raised by panic can be caught by an early signal handler. func CgoCatchPanic() { if _, ok := os.LookupEnv("CGOCATCHPANIC_EARLY_HANDLER"); !ok { C.registerAbortHandler() } panic("catch me")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 993 bytes - Viewed (0) -
test/typecheckloop.go
// errorcheck // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify that constant definition loops are caught during // typechecking and that the errors print correctly. package main const A = 1 + B // ERROR "constant definition loop\n.*A uses B\n.*B uses C\n.*C uses A|initialization cycle"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 20:27:09 UTC 2022 - 528 bytes - Viewed (0)