- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,092 for error (0.17 sec)
-
internal/bucket/versioning/error.go
package versioning import ( "fmt" ) // Error is the generic type for any error happening during tag // parsing. type Error struct { err error } // Errorf - formats according to a format specifier and returns // the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...interface{}) error { return Error{err: fmt.Errorf(format, a...)} } // Unwrap the internal error.
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.3K bytes - Viewed (0) -
internal/crypto/error.go
func Errorf(format string, a ...interface{}) error { e := fmt.Errorf(format, a...) ee := Error{} ee.msg = e.Error() ee.cause = errors.Unwrap(e) return ee } // Unwrap the internal error. func (e Error) Unwrap() error { return e.cause } // Error 'error' compatible method. func (e Error) Error() string { if e.msg == "" { return "crypto: cause <nil>" } return e.msg } var (
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Mar 28 17:44:56 GMT 2024 - 4.4K bytes - Viewed (0) -
internal/bucket/lifecycle/error.go
package lifecycle import ( "fmt" ) // Error is the generic type for any error happening during tag // parsing. type Error struct { err error } // Errorf - formats according to a format specifier and returns // the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...interface{}) error { return Error{err: fmt.Errorf(format, a...)} } // Unwrap the internal error.
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.3K bytes - Viewed (0) -
cni/pkg/nodeagent/error.go
package nodeagent import ( "errors" "fmt" ) var ErrPartialAdd = errors.New("partial add error") type PartialAddError struct { inner error } func (e *PartialAddError) Error() string { return fmt.Sprintf("%s: %v", ErrPartialAdd.Error(), e.inner) } func (e *PartialAddError) Unwrap() []error { return []error{ErrPartialAdd, e.inner} }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 1K bytes - Viewed (0) -
internal/bucket/replication/error.go
package replication import ( "fmt" ) // Error is the generic type for any error happening during tag // parsing. type Error struct { err error } // Errorf - formats according to a format specifier and returns // the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...interface{}) error { return Error{err: fmt.Errorf(format, a...)} } // Unwrap the internal error.
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.3K bytes - Viewed (0) -
tests/error_translator_test.go
package tests_test import ( "errors" "testing" "gorm.io/gorm" "gorm.io/gorm/utils/tests" ) func TestDialectorWithErrorTranslatorSupport(t *testing.T) { // it shouldn't translate error when the TranslateError flag is false translatedErr := errors.New("translated error") untranslatedErr := errors.New("some random error") db, _ := gorm.Open(tests.DummyDialector{TranslatedErr: translatedErr}) err := db.AddError(untranslatedErr)
Go - Registered: Sun Apr 21 09:35:09 GMT 2024 - Last Modified: Wed Jul 12 13:21:22 GMT 2023 - 3.1K bytes - Viewed (0) -
internal/config/errors-utils.go
u := Err{ msg: msg, action: action, hint: hint, } if err != nil { u.detail = err.Error() } return u } } // ErrorToErr inspects the passed error and transforms it // to the appropriate UI error. func ErrorToErr(err error) Err { if err == nil { return Err{} } // If this is already a Err, do nothing if e, ok := err.(Err); ok { return e }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Mar 06 16:56:10 GMT 2023 - 3.7K bytes - Viewed (0) -
internal/kms/errors.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package kms // Error encapsulates S3 API error response fields. type Error struct { Err error APICode string HTTPStatusCode int } func (e Error) Error() string { return e.Err.Error()
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Mar 16 18:59:42 GMT 2023 - 972 bytes - Viewed (0) -
internal/s3select/parquet/errors.go
message string statusCode int cause error } func (err *s3Error) Cause() error { return err.cause } func (err *s3Error) ErrorCode() string { return err.code } func (err *s3Error) ErrorMessage() string { return err.message } func (err *s3Error) HTTPStatusCode() int { return err.statusCode } func (err *s3Error) Error() string { return err.message }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.4K bytes - Viewed (0) -
cmd/sts-errors.go
) // writeSTSErrorResponse writes error headers func writeSTSErrorResponse(ctx context.Context, w http.ResponseWriter, errCode STSErrorCode, err error) { stsErr := stsErrCodes.ToSTSErr(errCode) // Generate error response. stsErrorResponse := STSErrorResponse{} stsErrorResponse.Error.Code = stsErr.Code stsErrorResponse.RequestID = w.Header().Get(xhttp.AmzRequestID) stsErrorResponse.Error.Message = stsErr.Description if err != nil {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 5.8K bytes - Viewed (0)