Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for StructuralError (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
Back to top