go-hep.org/x/hep@v0.38.1/sio/errors.go (about)

     1  // Copyright ©2017 The go-hep Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package sio
     6  
     7  import (
     8  	"errors"
     9  )
    10  
    11  var (
    12  	ErrStreamNoRecMarker   = errors.New("sio: no record marker found")
    13  	ErrRecordNoBlockMarker = errors.New("sio: no block marker found")
    14  	ErrBlockConnected      = errors.New("sio: block already connected")
    15  
    16  	// ErrBlockShortRead means that the deserialization of a SIO block
    17  	// read too few bytes with regard to what was written out in the
    18  	// Block header length.
    19  	ErrBlockShortRead = errors.New("sio: read too few bytes")
    20  
    21  	errPointerIDOverflow = errors.New("sio: pointer id overflow")
    22  )