errors.go 442 B

12345678910111213141516
  1. package main
  2. import (
  3. "errors"
  4. "fmt"
  5. )
  6. var (
  7. ErrInvalidFileMagic = errors.New("file is not a BRLYT")
  8. ErrFileSizeMismatch = errors.New("file size is mismatched")
  9. ErrInvalidTXLHeader = errors.New("txl1 header magic is invalid")
  10. ErrMisMatchedTXT1StringSize = func(stringSize int, correctSize uint16) error {
  11. return fmt.Errorf("string Size (%d) does not match the size found (%d)", stringSize, correctSize)
  12. }
  13. )