File: errors.go

package info (click to toggle)
golang-github-cznic-ql 1.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,408 kB
  • ctags: 1,922
  • sloc: yacc: 2,667; lex: 456; makefile: 111
file content (18 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2014 The ql Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package ql

import (
	"errors"
)

var (
	errBeginTransNoCtx          = errors.New("BEGIN TRANSACTION: Must use R/W context, have nil")
	errCommitNotInTransaction   = errors.New("COMMIT: Not in transaction")
	errDivByZero                = errors.New("division by zero")
	errIncompatibleDBFormat     = errors.New("incompatible DB format")
	errNoDataForHandle          = errors.New("read: no data for handle")
	errRollbackNotInTransaction = errors.New("ROLLBACK: Not in transaction")
)