errors.go 643 B

123456789101112131415161718
  1. // Copyright 2014 The ql 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. package ql
  5. import (
  6. "errors"
  7. )
  8. var (
  9. errBeginTransNoCtx = errors.New("BEGIN TRANSACTION: Must use R/W context, have nil")
  10. errCommitNotInTransaction = errors.New("COMMIT: Not in transaction")
  11. errDivByZero = errors.New("division by zero")
  12. errIncompatibleDBFormat = errors.New("incompatible DB format")
  13. errNoDataForHandle = errors.New("read: no data for handle")
  14. errRollbackNotInTransaction = errors.New("ROLLBACK: Not in transaction")
  15. )