github.com/tunabay/go-bitarray@v1.3.1/error.go (about) 1 // Copyright (c) 2021 Hirotsuna Mizuno. All rights reserved. 2 // Use of this source code is governed by the MIT license that can be found in 3 // the LICENSE file. 4 5 package bitarray 6 7 import ( 8 "errors" 9 ) 10 11 // ErrIllegalExpression is an error thrown when a string representation of 12 // bit array is not a legal format. 13 var ErrIllegalExpression = errors.New("illegal bit array expression") 14 15 // ErrFractionalBitsBeforeEOF is an error thrown when a byte-oriented reading 16 // method reaches io.EOF but there are still fractional bits less than 8 bits 17 // that cannot be read in bytes. 18 var ErrFractionalBitsBeforeEOF = errors.New("fractional bits before EOF")