- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 2,639 for erros (0.02 seconds)
-
internal/event/target/nsq.go
} // Validate NSQArgs fields func (n NSQArgs) Validate() error { if !n.Enable { return nil } if n.NSQDAddress.IsEmpty() { return errors.New("empty nsqdAddress") } if n.Topic == "" { return errors.New("empty topic") } if n.QueueDir != "" { if !filepath.IsAbs(n.QueueDir) { return errors.New("queueDir path should be absolute") } } return nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 7.1K bytes - Click Count (0) -
cmd/bucket-policy-handlers_test.go
errs++ mu.Unlock() return } mu.Lock() ok++ mu.Unlock() }() } close(start) wg.Wait() if ok != 1 { t.Fatalf("want 1 ok, got %d", ok) } if errs != n-1 { t.Fatalf("want %d errors, got %d", n-1, errs) } } // Wrapper for calling Put Bucket Policy HTTP handler tests for both Erasure multiple disks and single node setup.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
} @Test @DisplayName("Should create SmbException with message") void testSmbExceptionWithMessage() { // Given String message = "Custom error message"; // When SmbException exception = new SmbException(message); // Then assertNotNull(exception); assertEquals(message, exception.getMessage()); }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
cmd/api-errors_test.go
// Check if an API error is properly defined func TestAPIErrCodeDefinition(t *testing.T) { for errAPI := ErrNone + 1; errAPI < apiErrCodeEnd; errAPI++ { errCode, ok := errorCodes[errAPI] if !ok { t.Fatal(errAPI, "error code is not defined in the API error code table") } if errCode.Code == "" { t.Fatal(errAPI, "error code has an empty XML code") } if errCode.HTTPStatusCode == 0 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 3.4K bytes - Click Count (0) -
src/cmd/asm/internal/asm/endtoend_test.go
} else if err := errors[fileline]; err == "" { t.Errorf("%s: missing error, want %s", fileline, all) } else if !strings.Contains(err, mm[0][1]) { t.Errorf("%s: wrong error for %s:\n%s", fileline, all, err) } } else { if errors[fileline] != "" { t.Errorf("unexpected error on %s: %v", fileline, errors[fileline]) } } delete(errors, fileline) } var extra []stringCreated: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 23 18:45:48 GMT 2025 - 12.5K bytes - Click Count (0) -
internal/disk/stat_linux_32bit.go
return info, nil } // GetDriveStats returns IO stats of the drive by its major:minor func GetDriveStats(major, minor uint32) (iostats IOStats, err error) { return IOStats{}, errors.New("operation unsupported")
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Feb 26 19:34:50 GMT 2024 - 2.6K bytes - Click Count (0) -
docs_src/handling_errors/tutorial004_py39.py
@app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc: RequestValidationError): message = "Validation errors:" for error in exc.errors(): message += f"\nField: {error['loc']}, Error: {error['msg']}" return PlainTextResponse(message, status_code=400) @app.get("/items/{item_id}") async def read_item(item_id: int): if item_id == 3:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 920 bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java
return success(model, problemsList); } /** * Error with problems describing the cause * * @param problems */ public static <T> Result<T> error(Iterable<? extends ModelProblem> problems) { return error(null, problems); } public static <T> Result<T> error(T model) { return error(model, Collections.emptyList()); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 26 19:31:34 GMT 2025 - 6.9K bytes - Click Count (0) -
cmd/net_test.go
switch { case testCase.expectedErr == nil: if err != nil { t.Errorf("error: expected = <nil>, got = %v", err) } case err == nil: t.Errorf("error: expected = %v, got = <nil>", testCase.expectedErr) case testCase.expectedErr.Error() != err.Error(): t.Errorf("error: expected = %v, got = %v", testCase.expectedErr, err) } }) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.2K bytes - Click Count (0) -
internal/bucket/encryption/bucket-sse-config_test.go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Aug 16 18:28:30 GMT 2022 - 6.1K bytes - Click Count (0)