github.com/turingchain2020/turingchain@v1.1.21/common/db/table/error.go (about)

     1  // Copyright Turing Corp. 2018 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 table
     6  
     7  import "errors"
     8  
     9  //table 中的错误处理
    10  var (
    11  	ErrEmptyPrimaryKey        = errors.New("ErrEmptyPrimaryKey")
    12  	ErrPrimaryKey             = errors.New("ErrPrimaryKey")
    13  	ErrIndexKey               = errors.New("ErrIndexKey")
    14  	ErrTooManyIndex           = errors.New("ErrTooManyIndex")
    15  	ErrTablePrefixOrTableName = errors.New("ErrTablePrefixOrTableName")
    16  	ErrDupPrimaryKey          = errors.New("ErrDupPrimaryKey")
    17  	ErrNilValue               = errors.New("ErrNilValue")
    18  )