- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 2,409 for error (0.03 seconds)
-
api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Log.java
* Sends an exception to the user in the <b>error</b> error level. * The stack trace for this exception will be output when this error level is enabled. * * @param error the error that caused this log */ void error(Throwable error); void error(Supplier<String> content); void error(Supplier<String> content, Throwable error);
Created: 2026-04-05 03:35 - Last Modified: 2024-09-28 09:03 - 5.4K bytes - Click Count (0) -
cmd/object-api-errors.go
return "Object name invalid: " + e.Bucket + "/" + e.Object } // Error returns string an error formatted as the given text. func (e ObjectNameTooLong) Error() string { return "Object name too long: " + e.Bucket + "/" + e.Object } // Error returns string an error formatted as the given text. func (e ObjectNamePrefixAsSlash) Error() string {
Created: 2026-04-05 19:28 - Last Modified: 2024-08-09 02:05 - 22.1K bytes - Click Count (0) -
internal/config/dns/operator_dns.go
return ErrBucketConflict(Error{bucket, errors.New(errorString)}) } return newError(bucket, fmt.Errorf("service create for bucket %s, failed with status %s, error %s", bucket, resp.Status, errorString)) } return nil } func newError(bucket string, err error) error { e := Error{bucket, err} if strings.Contains(err.Error(), "invalid bucket name") { return ErrInvalidBucketName(e) }
Created: 2026-04-05 19:28 - Last Modified: 2024-11-11 14:51 - 6.6K bytes - Click Count (0) -
tests/main_test.go
if DB.Model(&User{}).Where("sdsd.zaaa = ?", "sd;;;aa").Pluck("aaa", &columns).Error == nil { t.Errorf("Should got error with invalid SQL") } if DB.Where("sdsd.zaaa = ?", "sd;;;aa").Find(&User{}).Error == nil { t.Errorf("Should got error with invalid SQL") } var count1, count2 int64 DB.Model(&User{}).Count(&count1) if count1 <= 0 { t.Errorf("Should find some users") }
Created: 2026-04-05 09:35 - Last Modified: 2026-03-21 11:35 - 1.5K bytes - Click Count (0) -
cmd/utils.go
} // IsErrIgnored returns whether given error is ignored or not. func IsErrIgnored(err error, ignoredErrs ...error) bool { return IsErr(err, ignoredErrs...) } // IsErr returns whether given error is exact error. func IsErr(err error, errs ...error) bool { for _, exactErr := range errs { if errors.Is(err, exactErr) { return true } } return false }
Created: 2026-04-05 19:28 - Last Modified: 2025-09-28 20:59 - 33K bytes - Click Count (0) -
internal/rest/client.go
online closed ) // NetworkError - error type in case of errors related to http/transport // for ex. connection refused, connection reset, dns resolution failure etc. // All errors returned by storage-rest-server (ex errFileNotFound, errDiskNotFound) are not considered to be network errors. type NetworkError struct { Err error } func (n *NetworkError) Error() string { return n.Err.Error() }Created: 2026-04-05 19:28 - Last Modified: 2025-09-28 20:59 - 14.7K bytes - Click Count (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/logging/SystemStreamLog.java
System.err.println("[error] " + content.toString()); } /** * @see org.apache.maven.plugin.logging.Log#error(java.lang.CharSequence, java.lang.Throwable) */ @Override public void error(CharSequence content, Throwable error) { StringWriter sWriter = new StringWriter(); PrintWriter pWriter = new PrintWriter(sWriter);
Created: 2026-04-05 03:35 - Last Modified: 2025-06-06 14:28 - 5.3K bytes - Click Count (0) -
cmd/format-erasure.go
return json.Marshal(formatV3) } // countErrs - count a specific error. func countErrs(errs []error, err error) int { i := 0 for _, err1 := range errs { if err1 == err || errors.Is(err1, err) { i++ } } return i } // Does all errors indicate we need to initialize all disks?. func shouldInitErasureDisks(errs []error) bool { return countErrs(errs, errUnformattedDisk) == len(errs) }
Created: 2026-04-05 19:28 - Last Modified: 2025-08-29 02:39 - 23.1K bytes - Click Count (0) -
cmd/notification.go
continue } } index := index g.Go(func() error { var err error reply[index], err = sys.peerClients[index].GetMetrics(ctx, t, opts) return err }, index) } for index, err := range g.Wait() { if err != nil { reply[index].Errors = []string{fmt.Sprintf("%s: %s (rpc)", sys.peerClients[index].String(), err.Error())} } } return reply }
Created: 2026-04-05 19:28 - Last Modified: 2025-09-28 20:59 - 46K bytes - Click Count (0) -
docs/en/docs/tutorial/handling-errors.md
} ] } ``` you will get a text version, with: ``` Validation errors: Field: ('path', 'item_id'), Error: Input should be a valid integer, unable to parse string as an integer ``` ### Override the `HTTPException` error handler { #override-the-httpexception-error-handler } The same way, you can override the `HTTPException` handler.Created: 2026-04-05 07:19 - Last Modified: 2026-03-05 18:13 - 8.9K bytes - Click Count (0)