- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for StructuralError (0.3 sec)
-
src/compress/bzip2/bzip2.go
// The source code to pyflate was useful for debugging: // http://www.paul.sladen.org/projects/pyflate // A StructuralError is returned when the bzip2 data is found to be // syntactically invalid. type StructuralError string func (s StructuralError) Error() string { return "bzip2 data invalid: " + string(s) } // A reader decompresses bzip2 compressed data. type reader struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 13K bytes - Viewed (0) -
src/encoding/asn1/asn1.go
"math" "math/big" "reflect" "strconv" "strings" "time" "unicode/utf16" "unicode/utf8" ) // A StructuralError suggests that the ASN.1 data is valid, but the Go type // which is receiving it doesn't match. type StructuralError struct { Msg string } func (e StructuralError) Error() string { return "asn1: structure error: " + e.Msg } // A SyntaxError suggests that the ASN.1 data is invalid.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 31.8K bytes - Viewed (0) -
src/encoding/asn1/marshal.go
if !ok || matchAny { return nil, StructuralError{fmt.Sprintf("unknown Go type: %v", v.Type())} } if params.timeType != 0 && tag != TagUTCTime { return nil, StructuralError{"explicit time type given to non-time member"} } if params.stringType != 0 && tag != TagPrintableString { return nil, StructuralError{"explicit string type given to non-string member"} } switch tag {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 17.1K bytes - Viewed (0) -
src/compress/bzip2/huffman.go
// is zero or one. Both cases are invalid because a zero length // tree cannot encode anything and a length-1 tree can only // encode EOF and so is superfluous. We reject both. if len(codes) < 2 { return 0, StructuralError("empty Huffman tree") } // In this case the recursion doesn't always reduce the length // of codes so we need to ensure termination via another // mechanism. if level == 31 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:44:37 UTC 2024 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go
klog.Errorf("failed to convert CRD validation to internal version: %v", err) continue } s, err := schema.NewStructural(internalSchema.OpenAPIV3Schema) if err != nil { cond.Reason = "StructuralError" cond.Message = fmt.Sprintf("failed to check validation schema for version %s: %v", v.Name, err) return cond } pth := field.NewPath("spec", "versions").Index(i).Child("schema", "openAPIV3Schema")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
internal/s3select/select.go
s3Select.recordReader, err = csv.NewReader(s3Select.progressReader, &s3Select.Input.CSVArgs) if err != nil { // Close all reader resources opened so far. s3Select.progressReader.Close() var stErr bzip2.StructuralError if errors.As(err, &stErr) { return errInvalidCompression(err, s3Select.Input.CompressionType) } // Test these compressor errors errs := []error{ gzip.ErrHeader, gzip.ErrChecksum,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 21K bytes - Viewed (0) -
src/encoding/asn1/asn1_test.go
} } } type unexported struct { X int y int } type exported struct { X int Y int } func TestUnexportedStructField(t *testing.T) { want := StructuralError{"struct contains unexported fields"} _, err := Marshal(unexported{X: 5, y: 1}) if err != want { t.Errorf("got %v, want %v", err, want) } bs, err := Marshal(exported{X: 5, Y: 1})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 18:24:36 UTC 2023 - 43.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
}, "cmp": { {"Compare", Func, 21}, {"Less", Func, 21}, {"Or", Func, 22}, {"Ordered", Type, 21}, }, "compress/bzip2": { {"(StructuralError).Error", Method, 0}, {"NewReader", Func, 0}, {"StructuralError", Type, 0}, }, "compress/flate": { {"(*ReadError).Error", Method, 0}, {"(*WriteError).Error", Method, 0}, {"(*Writer).Close", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg bytes, type Buffer struct pkg bytes, type Reader struct pkg bytes, var ErrTooLarge error pkg compress/bzip2, func NewReader(io.Reader) io.Reader pkg compress/bzip2, method (StructuralError) Error() string pkg compress/bzip2, type StructuralError string pkg compress/flate, const BestCompression ideal-int pkg compress/flate, const BestSpeed ideal-int pkg compress/flate, const DefaultCompression ideal-int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)